Here you can find the source of getHashCode(final byte... pBytes)
public static int getHashCode(final byte... pBytes)
//package com.java2s; public class Main { public static int getHashCode(final byte... pBytes) { final int prime = 31; int result = 1; for (int i = 0; i < pBytes.length; i++) { result = prime * result + pBytes[i]; }//from w w w . j a v a 2s .c om return result; } public static int getHashCode(final Object... pObjects) { final int prime = 31; int result = 1; for (int i = 0; i < pObjects.length; i++) { final Object object = pObjects[i]; result = prime * result + ((object == null) ? 0 : object.hashCode()); } return result; } }