Logo Search packages:      
Sourcecode: libcommons-lang-java version File versions  Download package

org::apache::commons::lang::ArrayUtils Class Reference

List of all members.


Detailed Description

Operations on arrays, primitive arrays (like int[]) and primitive wrapper arrays (like Integer[]).

This class tries to handle null input gracefully. An exception will not be thrown for a null array input. However, an Object array that contains a null element may throw an exception. Each method documents its behaviour.

Author:
Stephen Colebourne

Moritz Petersen

Fredrik Westermarck

Nikolay Metchev

Matthew Hawthorne

Tim O'Brien

Pete Gieser

Gary Gregory

Since:
2.0
Version:
Id
ArrayUtils.java,v 1.25 2003/08/22 17:25:33 ggregory Exp

Definition at line 84 of file ArrayUtils.java.


Public Member Functions

 ArrayUtils ()

Static Public Member Functions

static boolean[] clone (final boolean[] array)
static float[] clone (final float[] array)
static double[] clone (final double[] array)
static byte[] clone (final byte[] array)
static char[] clone (final char[] array)
static short[] clone (final short[] array)
static int[] clone (int[] array)
static long[] clone (final long[] array)
static Object[] clone (final Object[] array)
static boolean contains (final boolean[] array, final boolean valueToFind)
static boolean contains (final float[] array, final float valueToFind)
static boolean contains (final double[] array, final double valueToFind, final double tolerance)
static boolean contains (final double[] array, final double valueToFind)
static boolean contains (final byte[] array, final byte valueToFind)
static boolean contains (final short[] array, final short valueToFind)
static boolean contains (final int[] array, final int valueToFind)
static boolean contains (final long[] array, final long valueToFind)
static boolean contains (final Object[] array, final Object objectToFind)
static int hashCode (final Object array)
static int indexOf (final boolean[] array, final boolean valueToFind, int startIndex)
static int indexOf (final boolean[] array, final boolean valueToFind)
static int indexOf (final float[] array, final float valueToFind, int startIndex)
static int indexOf (final float[] array, final float valueToFind)
static int indexOf (final double[] array, final double valueToFind, int startIndex, double tolerance)
static int indexOf (final double[] array, final double valueToFind, int startIndex)
static int indexOf (final double[] array, final double valueToFind, final double tolerance)
static int indexOf (final double[] array, final double valueToFind)
static int indexOf (final byte[] array, final byte valueToFind, int startIndex)
static int indexOf (final byte[] array, final byte valueToFind)
static int indexOf (final short[] array, final short valueToFind, int startIndex)
static int indexOf (final short[] array, final short valueToFind)
static int indexOf (final int[] array, final int valueToFind, int startIndex)
static int indexOf (final int[] array, final int valueToFind)
static int indexOf (final long[] array, final long valueToFind, int startIndex)
static int indexOf (final long[] array, final long valueToFind)
static int indexOf (final Object[] array, final Object objectToFind, int startIndex)
static int indexOf (final Object[] array, final Object objectToFind)
static boolean isEquals (final Object array1, final Object array2)
static boolean isSameLength (final boolean[] array1, final boolean[] array2)
static boolean isSameLength (final float[] array1, final float[] array2)
static boolean isSameLength (final double[] array1, final double[] array2)
static boolean isSameLength (final byte[] array1, final byte[] array2)
static boolean isSameLength (final char[] array1, final char[] array2)
static boolean isSameLength (final short[] array1, final short[] array2)
static boolean isSameLength (final int[] array1, final int[] array2)
static boolean isSameLength (final long[] array1, final long[] array2)
static boolean isSameLength (final Object[] array1, final Object[] array2)
static boolean isSameType (final Object array1, final Object array2)
static int lastIndexOf (final boolean[] array, final boolean valueToFind, int startIndex)
static int lastIndexOf (final boolean[] array, final boolean valueToFind)
static int lastIndexOf (final float[] array, final float valueToFind, int startIndex)
static int lastIndexOf (final float[] array, final float valueToFind)
static int lastIndexOf (final double[] array, final double valueToFind, int startIndex, double tolerance)
static int lastIndexOf (final double[] array, final double valueToFind, int startIndex)
static int lastIndexOf (final double[] array, final double valueToFind, final double tolerance)
static int lastIndexOf (final double[] array, final double valueToFind)
static int lastIndexOf (final byte[] array, final byte valueToFind, int startIndex)
static int lastIndexOf (final byte[] array, final byte valueToFind)
static int lastIndexOf (final short[] array, final short valueToFind, int startIndex)
static int lastIndexOf (final short[] array, final short valueToFind)
static int lastIndexOf (final int[] array, final int valueToFind, int startIndex)
static int lastIndexOf (final int[] array, final int valueToFind)
static int lastIndexOf (final long[] array, final long valueToFind, int startIndex)
static int lastIndexOf (final long[] array, final long valueToFind)
static int lastIndexOf (final Object[] array, final Object objectToFind, int startIndex)
static int lastIndexOf (final Object[] array, final Object objectToFind)
static void reverse (final boolean[] array)
static void reverse (final float[] array)
static void reverse (final double[] array)
static void reverse (final byte[] array)
static void reverse (final char[] array)
static void reverse (final short[] array)
static void reverse (final int[] array)
static void reverse (final long[] array)
static void reverse (final Object[] array)
static Map toMap (final Object[] array)
static Boolean[] toObject (final boolean[] array)
static Float[] toObject (final float[] array)
static Double[] toObject (final double[] array)
static Byte[] toObject (final byte[] array)
static Short[] toObject (final short[] array)
static Integer[] toObject (final int[] array)
static Long[] toObject (final long[] array)
static boolean[] toPrimitive (final Boolean[] array, final boolean valueForNull)
static boolean[] toPrimitive (final Boolean[] array)
static float[] toPrimitive (final Float[] array, final float valueForNull)
static float[] toPrimitive (final Float[] array)
static double[] toPrimitive (final Double[] array, final double valueForNull)
static double[] toPrimitive (final Double[] array)
static byte[] toPrimitive (final Byte[] array, final byte valueForNull)
static byte[] toPrimitive (final Byte[] array)
static short[] toPrimitive (final Short[] array, final short valueForNull)
static short[] toPrimitive (final Short[] array)
static int[] toPrimitive (final Integer[] array, final int valueForNull)
static int[] toPrimitive (final Integer[] array)
static long[] toPrimitive (final Long[] array, final long valueForNull)
static long[] toPrimitive (final Long[] array)
static String toString (final Object array, final String stringIfNull)
static String toString (final Object array)

Static Public Attributes

static final boolean[] EMPTY_BOOLEAN_ARRAY = new boolean[0]
static final Boolean[] EMPTY_BOOLEAN_OBJECT_ARRAY = new Boolean[0]
static final byte[] EMPTY_BYTE_ARRAY = new byte[0]
static final Byte[] EMPTY_BYTE_OBJECT_ARRAY = new Byte[0]
static final char[] EMPTY_CHAR_ARRAY = new char[0]
static final Character[] EMPTY_CHARACTER_OBJECT_ARRAY = new Character[0]
static final Class[] EMPTY_CLASS_ARRAY = new Class[0]
static final double[] EMPTY_DOUBLE_ARRAY = new double[0]
static final Double[] EMPTY_DOUBLE_OBJECT_ARRAY = new Double[0]
static final float[] EMPTY_FLOAT_ARRAY = new float[0]
static final Float[] EMPTY_FLOAT_OBJECT_ARRAY = new Float[0]
static final int[] EMPTY_INT_ARRAY = new int[0]
static final Integer[] EMPTY_INTEGER_OBJECT_ARRAY = new Integer[0]
static final long[] EMPTY_LONG_ARRAY = new long[0]
static final Long[] EMPTY_LONG_OBJECT_ARRAY = new Long[0]
static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]
static final short[] EMPTY_SHORT_ARRAY = new short[0]
static final Short[] EMPTY_SHORT_OBJECT_ARRAY = new Short[0]
static final String[] EMPTY_STRING_ARRAY = new String[0]

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index