< prev index next >

src/java.base/share/classes/java/util/Arrays.java

Print this page

        

*** 2713,2723 **** * * @param a one array to be tested for equality * @param a2 the other array to be tested for equality * @return {@code true} if the two arrays are equal */ ! public static boolean equals(short[] a, short a2[]) { if (a==a2) return true; if (a==null || a2==null) return false; --- 2713,2723 ---- * * @param a one array to be tested for equality * @param a2 the other array to be tested for equality * @return {@code true} if the two arrays are equal */ ! public static boolean equals(short[] a, short[] a2) { if (a==a2) return true; if (a==null || a2==null) return false;
*** 4470,4480 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(long a[]) { if (a == null) return 0; int result = 1; for (long element : a) { --- 4470,4480 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(long[] a) { if (a == null) return 0; int result = 1; for (long element : a) {
*** 4499,4509 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(int a[]) { if (a == null) return 0; int result = 1; for (int element : a) --- 4499,4509 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(int[] a) { if (a == null) return 0; int result = 1; for (int element : a)
*** 4526,4536 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(short a[]) { if (a == null) return 0; int result = 1; for (short element : a) --- 4526,4536 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(short[] a) { if (a == null) return 0; int result = 1; for (short element : a)
*** 4553,4563 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(char a[]) { if (a == null) return 0; int result = 1; for (char element : a) --- 4553,4563 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(char[] a) { if (a == null) return 0; int result = 1; for (char element : a)
*** 4580,4590 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(byte a[]) { if (a == null) return 0; int result = 1; for (byte element : a) --- 4580,4590 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(byte[] a) { if (a == null) return 0; int result = 1; for (byte element : a)
*** 4607,4617 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(boolean a[]) { if (a == null) return 0; int result = 1; for (boolean element : a) --- 4607,4617 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(boolean[] a) { if (a == null) return 0; int result = 1; for (boolean element : a)
*** 4634,4644 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(float a[]) { if (a == null) return 0; int result = 1; for (float element : a) --- 4634,4644 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(float[] a) { if (a == null) return 0; int result = 1; for (float element : a)
*** 4661,4671 **** * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(double a[]) { if (a == null) return 0; int result = 1; for (double element : a) { --- 4661,4671 ---- * * @param a the array whose hash value to compute * @return a content-based hash code for {@code a} * @since 1.5 */ ! public static int hashCode(double[] a) { if (a == null) return 0; int result = 1; for (double element : a) {
*** 4694,4704 **** * @param a the array whose content-based hash code to compute * @return a content-based hash code for {@code a} * @see #deepHashCode(Object[]) * @since 1.5 */ ! public static int hashCode(Object a[]) { if (a == null) return 0; int result = 1; --- 4694,4704 ---- * @param a the array whose content-based hash code to compute * @return a content-based hash code for {@code a} * @see #deepHashCode(Object[]) * @since 1.5 */ ! public static int hashCode(Object[] a) { if (a == null) return 0; int result = 1;
*** 4735,4745 **** * @param a the array whose deep-content-based hash code to compute * @return a deep-content-based hash code for {@code a} * @see #hashCode(Object[]) * @since 1.5 */ ! public static int deepHashCode(Object a[]) { if (a == null) return 0; int result = 1; --- 4735,4745 ---- * @param a the array whose deep-content-based hash code to compute * @return a deep-content-based hash code for {@code a} * @see #hashCode(Object[]) * @since 1.5 */ ! public static int deepHashCode(Object[] a) { if (a == null) return 0; int result = 1;
< prev index next >