@Test public void testStringToHash() { byte[] hash2 = ClassHash.stringToHash(s); Assert.assertTrue(Arrays.equals(hash, hash2)); }
@Override public boolean equals(Object o) { if (o instanceof MethodHash) { return isSameHash((MethodHash) o); } return false; }
MethodHash implements Comparable<MethodHash> { @Override public boolean equals(Object o) { if (o instanceof MethodHash) { return isSameHash((MethodHash) o); } return false; } }
MethodHash implements Comparable<MethodHash> { @Override public boolean equals(Object o) { if (o instanceof MethodHash) { return isSameHash((MethodHash) o); } return false; } MethodHash();  MethodHash(String methodName, String methodSig, boolean isStatic, byte[] hash); }
MethodHash implements Comparable<MethodHash> { @Override public boolean equals(Object o) { if (o instanceof MethodHash) { return isSameHash((MethodHash) o); } return false; } MethodHash();  MethodHash(String methodName, String methodSig, boolean isStatic, byte[] hash); String getMethodName(); String getMethodSig(); boolean isStatic(); byte[] getMethodHash(); MethodHash computeHash(Method method); boolean isSameHash(MethodHash other); @Override int compareTo(MethodHash other); @Override boolean equals(Object o); @Override int hashCode(); static int compareHashes(byte[] a, byte[] b); }
MethodHash implements Comparable<MethodHash> { @Override public boolean equals(Object o) { if (o instanceof MethodHash) { return isSameHash((MethodHash) o); } return false; } MethodHash();  MethodHash(String methodName, String methodSig, boolean isStatic, byte[] hash); String getMethodName(); String getMethodSig(); boolean isStatic(); byte[] getMethodHash(); MethodHash computeHash(Method method); boolean isSameHash(MethodHash other); @Override int compareTo(MethodHash other); @Override boolean equals(Object o); @Override int hashCode(); static int compareHashes(byte[] a, byte[] b); static final String METHOD_HASH_ELEMENT_NAME; }