@Test public void testHashCode() { assertEquals(argCheck.hashCode(), new Arg("asdsad".toCharArray(), "$2a$06$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i").hashCode()); assertEquals(argHash.hashCode(), new Arg("asdsad".toCharArray(), salt, 12).hashCode()); }
@Override public int hashCode() { int result = Objects.hash(checkBcryptHash, costFactor); result = 31 * result + Arrays.hashCode(password); result = 31 * result + Arrays.hashCode(salt); return result; }
Arg { @Override public int hashCode() { int result = Objects.hash(checkBcryptHash, costFactor); result = 31 * result + Arrays.hashCode(password); result = 31 * result + Arrays.hashCode(salt); return result; } }
Arg { @Override public int hashCode() { int result = Objects.hash(checkBcryptHash, costFactor); result = 31 * result + Arrays.hashCode(password); result = 31 * result + Arrays.hashCode(salt); return result; } Arg();   Arg(char[] password, String checkBcryptHash);   Arg(char[] password, byte[] salt, int costFactor);   Arg(char[] password, String checkBcryptHash, byte[] salt, int costFactor); }
Arg { @Override public int hashCode() { int result = Objects.hash(checkBcryptHash, costFactor); result = 31 * result + Arrays.hashCode(password); result = 31 * result + Arrays.hashCode(salt); return result; } Arg();   Arg(char[] password, String checkBcryptHash);   Arg(char[] password, byte[] salt, int costFactor);   Arg(char[] password, String checkBcryptHash, byte[] salt, int costFactor); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Arg { @Override public int hashCode() { int result = Objects.hash(checkBcryptHash, costFactor); result = 31 * result + Arrays.hashCode(password); result = 31 * result + Arrays.hashCode(salt); return result; } Arg();   Arg(char[] password, String checkBcryptHash);   Arg(char[] password, byte[] salt, int costFactor);   Arg(char[] password, String checkBcryptHash, byte[] salt, int costFactor); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); public char[] password; public String checkBcryptHash; public byte[] salt; public int costFactor; }