Package | Description |
---|---|
com.net2plan.utils |
General utility static methods.
|
Modifier and Type | Method and Description |
---|---|
static Constants.SearchType |
Constants.SearchType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constants.SearchType[] |
Constants.SearchType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
BooleanUtils.find(boolean[] array,
boolean value,
Constants.SearchType searchType)
Returns the position(s) where a given value can be found into an array.
|
static int[] |
DoubleUtils.find(double[] array,
double value,
Constants.SearchType searchType)
Returns the position(s) where a given value can be found into an array.
|
static int[] |
IntUtils.find(int[] array,
int value,
Constants.SearchType searchType)
Returns the position(s) where a given value can be found into an array.
|
static int[] |
LongUtils.find(long[] array,
long value,
Constants.SearchType searchType)
Returns the position(s) where a given value can be found into an array.
|
static <A,B> List<A> |
CollectionUtils.find(Map<A,B> map,
B value,
Constants.SearchType searchType)
Returns the key(s) where a given value can be found into a map.
|
static int[] |
StringUtils.find(String[] array,
String value,
Constants.SearchType searchType)
Returns the position(s) where a given value can be found into an array.
|
static int[] |
DoubleUtils.maxIndexes(double[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum value is found.
|
static int[] |
DoubleUtils.maxIndexes(double[] array,
Constants.SearchType searchType,
double precisionFactor)
Returns the position(s) in which the maximum value is found.
|
static int[] |
IntUtils.maxIndexes(int[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum value is found.
|
static int[] |
LongUtils.maxIndexes(long[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum value is found.
|
static <A> Set<A> |
DoubleUtils.maxIndexes(Map<A,Double> map,
Constants.SearchType searchType)
Returns the position(s) in which the maximum value is found.
|
static <A> Set<A> |
IntUtils.maxIndexes(Map<A,Integer> map,
Constants.SearchType searchType)
Returns the position(s) in which the maximum value is found.
|
static int[][] |
DoubleUtils.maxMinIndexes(double[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum/minimum values are found.
|
static int[][] |
DoubleUtils.maxMinIndexes(double[] array,
Constants.SearchType searchType,
double precisionFactor)
Returns the position(s) in which the maximum/minimum values are found.
|
static int[][] |
IntUtils.maxMinIndexes(int[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum/minimum values are found.
|
static int[][] |
LongUtils.maxMinIndexes(long[] array,
Constants.SearchType searchType)
Returns the position(s) in which the maximum/minimum values are found.
|
static int[] |
DoubleUtils.minIndexes(double[] array,
Constants.SearchType searchType)
Returns the position(s) in which the minimum value is found.
|
static int[] |
IntUtils.minIndexes(int[] array,
Constants.SearchType searchType)
Returns the position(s) in which the minimum value is found.
|
static int[] |
LongUtils.minIndexes(long[] array,
Constants.SearchType searchType)
Returns the position(s) in which the minimum value is found.
|
static <A> Set<A> |
DoubleUtils.minIndexes(Map<A,Double> map,
Constants.SearchType searchType)
Returns the position(s) in which the minimum value is found.
|
static <A> Set<A> |
IntUtils.minIndexes(Map<A,Integer> map,
Constants.SearchType searchType)
Returns the position(s) in which the minimum value is found.
|