Class ArrayUtils

java.lang.Object
com.mchange.v1.util.ArrayUtils

public final class ArrayUtils extends Object
  • Method Details

    • indexOf

      public static int indexOf(Object[] array, Object o)
      The array may contain nulls, but o must be non-null.
    • identityIndexOf

      public static int identityIndexOf(Object[] array, Object o)
    • startsWith

      public static boolean startsWith(byte[] checkMe, byte[] maybePrefix)
    • hashArray

      public static int hashArray(Object[] oo)
      returns a hash-code for an array consistent with Arrays.equals( ... )
    • hashArray

      public static int hashArray(int[] ii)
      returns a hash-code for an array consistent with Arrays.equals( ... )
    • hashOrZeroArray

      public static int hashOrZeroArray(Object[] oo)
    • hashOrZeroArray

      public static int hashOrZeroArray(int[] ii)
    • stringifyContents

      public static String stringifyContents(Object[] array)
      Deprecated.
      use the various toString(T[] methods)
    • toString

      public static String toString(boolean[] arr)
    • toString

      public static String toString(byte[] arr)
    • toString

      public static String toString(char[] arr)
    • toString

      public static String toString(short[] arr)
    • toString

      public static String toString(int[] arr)
    • toString

      public static String toString(long[] arr)
    • toString

      public static String toString(float[] arr)
    • toString

      public static String toString(double[] arr)
    • toString

      public static String toString(Object[] arr)