Java Array Equal blobsAreEqual(byte[] blob1, byte[] blob2)

Here you can find the source of blobsAreEqual(byte[] blob1, byte[] blob2)

Description

blobs Are Equal

License

Apache License

Declaration

public static boolean blobsAreEqual(byte[] blob1, byte[] blob2) 

Method Source Code

//package com.java2s;
/**/*from  www  . j  a v a 2 s . co m*/
 *    Copyright 2006-2016 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

import java.util.Arrays;

public class Main {
    public static boolean blobsAreEqual(byte[] blob1, byte[] blob2) {
        return Arrays.equals(blob1, blob2);
    }
}

Related

  1. arraysEqual(String[] one, String[] other)
  2. arraysEquals(byte[] a, byte[] b)
  3. arraysEquals(byte[] a, int ofsA, byte[] b, int ofsB, int len)
  4. arraysEquals(byte[] arr1, int offset1, byte[] arr2, int offset2)
  5. arraysEquals(Object[] mThis, Object[] mThat)
  6. bytesAreEqual(byte[] b1, byte[] b2)
  7. equal(boolean[][] a, boolean[][] b)
  8. equal(byte[] a, byte[] b)
  9. equal(float[][] array1, float[][] array2)