boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CoreHKey coreHKey = (CoreHKey)o; return dirKey == coreHKey.dirKey && myMethod.equals(coreHKey.myMethod); }