|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.ArrayTool
public class ArrayTool
A class consisting of several static methods used for arrays.
| Constructor Summary | |
|---|---|
ArrayTool()
|
|
| Method Summary | |
|---|---|
static int |
contains(Object[] container,
Object within)
Test if a given object is within the array. |
static boolean |
equalInts(int[] size)
Tests, if an integer array has all equal numbers. |
static double[] |
minmax(double[] in)
Scans the primitve array for the minimum and maximum value. |
static Vector2D |
minMax(double[] in)
Scans the primitve array for the minimum and maximum value, returns it as a vector2d |
static double[] |
toDouble(float[] f)
Converts a float[] to a double[] |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayTool()
| Method Detail |
|---|
public static int contains(Object[] container,
Object within)
public static boolean equalInts(int[] size)
ArrayTool.equalInts(new int[]{list1.size(), list2.size(),...})
public static double[] minmax(double[] in)
public static Vector2D minMax(double[] in)
public static double[] toDouble(float[] f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||