public class ArrayUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
binarySearch(double[] array,
double value,
double tolerance)
Return the index of
value in array, or -1 if there is no such index. |
static java.lang.String[] |
concat(java.lang.String[] one,
java.lang.String[] other)
Concatenates 2 arrays
|
static <T> T[] |
concat(T[] one,
T[] other,
java.lang.Class<T> clazz)
Concatenates 2 arrays
|
public static int binarySearch(double[] array,
double value,
double tolerance)
value in array, or -1 if there is no such index.
If there are several values that are within tolerance or less of value, this method will return the
index of the closest value. In case of several values being as close ot value, there is no guarantee which index
will be returned.
Results are undefined if the array is not sorted.public static java.lang.String[] concat(java.lang.String[] one,
java.lang.String[] other)
public static <T> T[] concat(T[] one,
T[] other,
java.lang.Class<T> clazz)