| java.lang.Object org.jfree.util.ArrayUtilities
ArrayUtilities | public class ArrayUtilities (Code) | | Utility methods for working with arrays.
author: David Gilbert |
Method Summary | |
public static float[][] | clone(float[][] array) Clones a two dimensional array of floats.
Parameters: array - the array. | public static int | compareVersionArrays(Comparable[] a1, Comparable[] a2) | public static boolean | equal(float[][] array1, float[][] array2) Tests two float arrays for equality.
Parameters: array1 - the first array (null permitted). Parameters: array2 - the second arrray (null permitted). | public static boolean | equalReferencesInArrays(Object[] array1, 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).
Parameters: array1 - the first array (null permitted). Parameters: array2 - the second array (null permitted). | public static boolean | hasDuplicateItems(Object[] array) Returns true if any two items in the array are equal to
one another. |
clone | public static float[][] clone(float[][] array)(Code) | | Clones a two dimensional array of floats.
Parameters: array - the array. A clone of the array. |
equal | public static boolean equal(float[][] array1, float[][] array2)(Code) | | Tests two float arrays for equality.
Parameters: array1 - the first array (null permitted). Parameters: array2 - the second arrray (null permitted). A boolean. |
equalReferencesInArrays | public static boolean equalReferencesInArrays(Object[] array1, Object[] array2)(Code) | | 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).
Parameters: array1 - the first array (null permitted). Parameters: array2 - the second array (null permitted). A boolean. |
hasDuplicateItems | public static boolean hasDuplicateItems(Object[] array)(Code) | | Returns true if any two items in the array are equal to
one another. Any null values in the array are ignored.
Parameters: array - the array to check. A boolean. |
|
|