Package com.mchange.v1.util
Class ArrayUtils
java.lang.Object
com.mchange.v1.util.ArrayUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic inthashArray(int[] ii) returns a hash-code for an array consistent with Arrays.equals( ...static intreturns a hash-code for an array consistent with Arrays.equals( ...static inthashOrZeroArray(int[] ii) static inthashOrZeroArray(Object[] oo) static intidentityIndexOf(Object[] array, Object o) static intThe array may contain nulls, but o must be non-null.static booleanstartsWith(byte[] checkMe, byte[] maybePrefix) static StringstringifyContents(Object[] array) Deprecated.use the various toString(T[] methods)static StringtoString(boolean[] arr) static StringtoString(byte[] arr) static StringtoString(char[] arr) static StringtoString(double[] arr) static StringtoString(float[] arr) static StringtoString(int[] arr) static StringtoString(long[] arr) static StringtoString(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
-