Package | Description |
---|---|
com.net2plan.utils |
General utility static methods.
|
Modifier and Type | Method and Description |
---|---|
static Constants.OrderingType |
Constants.OrderingType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.OrderingType[] |
Constants.OrderingType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<double[]> |
DoubleUtils.getMatrixSorter(int columnId,
Constants.OrderingType orderingType)
Sorts a 2D
double array based on a given column. |
static java.util.Comparator<int[]> |
IntUtils.getMatrixSorter(int columnId,
Constants.OrderingType orderingType)
Sorts a 2D
int array based on a given column. |
static void |
DoubleUtils.sort(double[] array,
Constants.OrderingType orderingType)
Sorts the input array (it will be overriden).
|
static void |
IntUtils.sort(int[] array,
Constants.OrderingType orderingType)
Sorts the input array (it will be overriden).
|
static int[] |
DoubleUtils.sortIndexes(double[] array,
Constants.OrderingType orderingType)
Sorts indexes of the
array into ascending/descending order in a stable way. |
static int[] |
IntUtils.sortIndexes(int[] array,
Constants.OrderingType orderingType)
Sorts indexes of the
array into ascending/descending order in a stable way. |