< prev index next >

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

Print this page
rev 58428 : [mq]: XXXXXXX-typos

*** 2792,2802 **** * two array references are considered equal if both are {@code null}. * * Two doubles {@code d1} and {@code d2} are considered equal if: * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equals to itself, and 0.0d unequal to -0.0d.) * * @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 * @see Double#equals(Object) --- 2792,2802 ---- * two array references are considered equal if both are {@code null}. * * Two doubles {@code d1} and {@code d2} are considered equal if: * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equal to itself, and 0.0d unequal to -0.0d.) * * @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 * @see Double#equals(Object)
*** 2825,2835 **** * in the same order. * * <p>Two doubles {@code d1} and {@code d2} are considered equal if: * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equals to itself, and 0.0d unequal to -0.0d.) * * @param a the first array to be tested for equality * @param aFromIndex the index (inclusive) of the first element in the * first array to be tested * @param aToIndex the index (exclusive) of the last element in the --- 2825,2835 ---- * in the same order. * * <p>Two doubles {@code d1} and {@code d2} are considered equal if: * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equal to itself, and 0.0d unequal to -0.0d.) * * @param a the first array to be tested for equality * @param aFromIndex the index (inclusive) of the first element in the * first array to be tested * @param aToIndex the index (exclusive) of the last element in the
*** 2875,2885 **** * two array references are considered equal if both are {@code null}. * * Two floats {@code f1} and {@code f2} are considered equal if: * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equals to itself, and 0.0f unequal to -0.0f.) * * @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 * @see Float#equals(Object) --- 2875,2885 ---- * two array references are considered equal if both are {@code null}. * * Two floats {@code f1} and {@code f2} are considered equal if: * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equal to itself, and 0.0f unequal to -0.0f.) * * @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 * @see Float#equals(Object)
*** 2908,2918 **** * in the same order. * * <p>Two floats {@code f1} and {@code f2} are considered equal if: * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equals to itself, and 0.0f unequal to -0.0f.) * * @param a the first array to be tested for equality * @param aFromIndex the index (inclusive) of the first element in the * first array to be tested * @param aToIndex the index (exclusive) of the last element in the --- 2908,2918 ---- * in the same order. * * <p>Two floats {@code f1} and {@code f2} are considered equal if: * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> * (Unlike the {@code ==} operator, this method considers ! * {@code NaN} equal to itself, and 0.0f unequal to -0.0f.) * * @param a the first array to be tested for equality * @param aFromIndex the index (inclusive) of the first element in the * first array to be tested * @param aToIndex the index (exclusive) of the last element in the
*** 7491,7501 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 7491,7501 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 7618,7628 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 7618,7628 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 7745,7755 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 7745,7755 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 7872,7882 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 7872,7882 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 7999,8009 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 7999,8009 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 8126,8136 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 8126,8136 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 8253,8263 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 8253,8263 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 8380,8390 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 8380,8390 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 8511,8521 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre> --- 8511,8521 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex)) * }</pre>
*** 8657,8667 **** * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * cmp) --- 8657,8667 ---- * elements from each array mismatch. * * <p>Two non-{@code null} arrays, {@code a} and {@code b} with specified * ranges [{@code aFromIndex}, {@code atoIndex}) and * [{@code bFromIndex}, {@code btoIndex}) respectively, share a proper ! * prefix if the following expression is true: * <pre>{@code * (aToIndex - aFromIndex) != (bToIndex - bFromIndex) && * Arrays.equals(a, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * b, 0, Math.min(aToIndex - aFromIndex, bToIndex - bFromIndex), * cmp)
< prev index next >