Package | Description |
---|---|
com.net2plan.utils |
General utility static methods.
|
Modifier and Type | Method and Description |
---|---|
static Constants.OrderingType |
Constants.OrderingType.valueOf(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 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 void |
LongUtils.sort(long[] array,
Constants.OrderingType orderingType)
Sorts the input array (it will be overriden).
|
static <A extends Comparable<A>,B extends Comparable<B>> |
CollectionUtils.sort(Map<A,B> map,
Constants.OrderingType orderingType)
Returns a
SortedMap copy of the input map according to natural ordering of values. |
static <A extends Comparable<A>,B extends Comparable<B>> |
CollectionUtils.sort(Map<A,B> map,
Constants.OrderingType orderingType,
Comparator<B> comparator)
Returns a
SortedMap copy of the input map according to custom ordering of values. |
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. |
static int[] |
LongUtils.sortIndexes(long[] array,
Constants.OrderingType orderingType)
Sorts indexes of the
array into ascending/descending order in a stable way. |