|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.util.ArrayUtils
public class ArrayUtils
Class gathering utilities related to Arrays.
Constructor Summary | |
---|---|
ArrayUtils()
|
Method Summary | |
---|---|
static int |
countOccurrences(String s,
String[] array)
Counts the number of occurrences of the given string in the given array |
static Double[] |
doubleToDoubleArray(double... a)
Converts a double[] to a Double[] (auto-boxing doesn't work for arrays...) |
static int |
getBinIndex(double value,
double[] bins)
|
static int[] |
getLinearArray(int dim)
Initialises an array of the given size, with the value at each index corresponding to the index, i.e. |
static double[] |
getLinearPercentageArray()
create a double[] which contains percentage values, i.e. |
static String |
toString(int... a)
A vararg wrapper around Arrays.toString(int[]) |
static String |
toString(int[] a,
int maxValues)
Gets a string representation just as Arrays.toString(int[]) , but at most until the given max amount of
values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayUtils()
Method Detail |
---|
public static int[] getLinearArray(int dim)
public static String toString(int[] a, int maxValues)
Arrays.toString(int[])
, but at most until the given max amount of
values.
public static String toString(int... a)
Arrays.toString(int[])
public static int countOccurrences(String s, String[] array)
public static int getBinIndex(double value, double[] bins)
public static double[] getLinearPercentageArray()
public static Double[] doubleToDoubleArray(double... a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |