org.jfree.util
Class ArrayUtilities

java.lang.Object
  extended by org.jfree.util.ArrayUtilities

public abstract class ArrayUtilities
extends java.lang.Object

Utility methods for working with arrays.


Constructor Summary
ArrayUtilities()
           
 
Method Summary
static float[][] clone(float[][] array)
          Clones a two dimensional array of floats.
static boolean equal(float[][] array1, float[][] array2)
          Tests two float arrays for equality.
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
 

Constructor Detail

ArrayUtilities

public ArrayUtilities()
Method Detail

clone

public static float[][] clone(float[][] array)
Clones a two dimensional array of floats.

Parameters:
array - the array.
Returns:
A clone of the array.

equal

public static boolean equal(float[][] array1,
                            float[][] array2)
Tests two float arrays for equality.

Parameters:
array1 - the first array (null permitted).
array2 - the second arrray (null permitted).
Returns:
A boolean.

hasDuplicateItems

public static boolean hasDuplicateItems(java.lang.Object[] array)
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.
Returns:
A boolean.