|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.util.ArrayUtilities
public class ArrayUtilities
Utility methods for working with arrays.
Method Summary | |
---|---|
static float[][] |
clone(float[][] array)
Clones a two dimensional array of floats. |
static int |
compareVersionArrays(java.lang.Comparable[] a1,
java.lang.Comparable[] a2)
Compares the initial elements of two arrays. |
static boolean |
equal(float[][] array1,
float[][] array2)
Tests two float arrays for equality. |
static boolean |
equalReferencesInArrays(java.lang.Object[] array1,
java.lang.Object[] array2)
Returns true if all the references in array1
are equal to all the references in array2 (two
null references are considered equal for this test). |
static boolean |
hasDuplicateItems(java.lang.Object[] array)
Returns true if any two items in the array are equal to
one another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static float[][] clone(float[][] array)
array
- the array.
public static boolean equalReferencesInArrays(java.lang.Object[] array1, java.lang.Object[] array2)
true
if all the references in array1
are equal to all the references in array2
(two
null
references are considered equal for this test).
array1
- the first array (null
permitted).array2
- the second array (null
permitted).
public static boolean equal(float[][] array1, float[][] array2)
array1
- the first array (null
permitted).array2
- the second arrray (null
permitted).
public static boolean hasDuplicateItems(java.lang.Object[] array)
true
if any two items in the array are equal to
one another. Any null
values in the array are ignored.
array
- the array to check.
public static int compareVersionArrays(java.lang.Comparable[] a1, java.lang.Comparable[] a2)
a1
- array 1.a2
- array 2.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |