Package com.mchange.v1.util
Class ArrayUtils
java.lang.Object
com.mchange.v1.util.ArrayUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
hashArray
(int[] ii) returns a hash-code for an array consistent with Arrays.equals( ...static int
returns a hash-code for an array consistent with Arrays.equals( ...static int
hashOrZeroArray
(int[] ii) static int
hashOrZeroArray
(Object[] oo) static int
identityIndexOf
(Object[] array, Object o) static int
The array may contain nulls, but o must be non-null.static boolean
startsWith
(byte[] checkMe, byte[] maybePrefix) static String
stringifyContents
(Object[] array) Deprecated.use the various toString(T[] methods)static String
toString
(boolean[] arr) static String
toString
(byte[] arr) static String
toString
(char[] arr) static String
toString
(double[] arr) static String
toString
(float[] arr) static String
toString
(int[] arr) static String
toString
(long[] arr) static String
toString
(short[] arr) static String
-
Method Details
-
indexOf
The array may contain nulls, but o must be non-null. -
identityIndexOf
-
startsWith
public static boolean startsWith(byte[] checkMe, byte[] maybePrefix) -
hashArray
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
-
hashOrZeroArray
public static int hashOrZeroArray(int[] ii) -
stringifyContents
Deprecated.use the various toString(T[] methods) -
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-