List of utility methods to do Array Length Compare
boolean | isSameLength(Object[] array1, Object[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(boolean[] array1, boolean[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(byte[] array1, byte[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(char[] array1, char[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(double[] array1, double[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(float[] array1, float[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(int[] array1, int[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(long[] array1, long[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |
boolean | isSameLength(short[] array1, short[] array2) Checks whether two arrays are the same length, treating if ((array1 == null && array2 != null && array2.length > 0) || (array2 == null && array1 != null && array1.length > 0) || (array1 != null && array2 != null && array1.length != array2.length)) { return false; return true; |