Java Array Equal equals(byte[] data1, byte[] data2)

Here you can find the source of equals(byte[] data1, byte[] data2)

Description

equals

License

Open Source License

Declaration

public static boolean equals(byte[] data1, byte[] data2) 

Method Source Code

//package com.java2s;
/**/*from   w  w w  . j a  v a2s  .co  m*/
 * Project: ${puma-common.aid}
 * 
 * File Created at 2012-6-24
 * $Id$
 * 
 * Copyright 2010 dianping.com.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Dianping Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dianping.com.
 */

import java.util.Arrays;

public class Main {
    public static boolean equals(byte[] data1, byte[] data2) {
        return Arrays.equals(data1, data2);
    }
}

Related

  1. equalityCheck(byte[] a, byte[] b)
  2. equalMaps(Map expected, Map actual)
  3. equalOrDie(String testName, Object[] a, Object[] b)
  4. equals(byte[] a, byte[] b)
  5. equals(byte[] a1, byte[] a2)
  6. equals(byte[] first, byte[] second)
  7. equals(byte[] first, byte[] second)
  8. equals(char[] left, int offsetLeft, char[] right, int offsetRight, int length)
  9. equals(char[] left, int offsetLeft, char[] right, int offsetRight, int length)