Example #1
0
 /**
  * Check the given arrays for equalitiy. This method considers both arrays as equal, if both are
  * <code>null</code> or both have the same length and contain exactly the same char values.
  *
  * @param array1 The first array.
  * @param array2 The second array.
  * @return True, if both arrays are <code>null</code> or both have the same length and contain
  *     exactly the same char values. False, otherwise.
  * @preconditions
  * @postconditions
  */
 public static boolean equals(char[] array1, char[] array2) {
   return Arrays.equals(array1, array2);
 }
Example #2
0
 /**
  * Check the given arrays for equalitiy. This method considers both arrays as equal, if both are
  * <code>null</code> or both have the same length and contain exactly the same byte values.
  *
  * @param array1 The first array.
  * @param array2 The second array.
  * @return True, if both arrays are <code>null</code> or both have the same length and contain
  *     exactly the same byte values. False, otherwise.
  * @preconditions
  * @postconditions
  */
 public static boolean equals(byte[] array1, byte[] array2) {
   return Arrays.equals(array1, array2);
 }