/** Make sure that a getter does not equal a label. X() and X are ok. * OTOH, treat X() with two diff return values as the same. Treat * two X() with diff args as different. */ @Override public boolean equals(Object obj) { if ( this==obj ) return true; // A() and label A are different if ( !(obj instanceof ContextGetterDecl) ) return false; return name.equals(((Decl) obj).name) && getArgType().equals(((ContextGetterDecl) obj).getArgType()); } }
/** Make sure that a getter does not equal a label. X() and X are ok. * OTOH, treat X() with two diff return values as the same. Treat * two X() with diff args as different. */ @Override public boolean equals(Object obj) { if ( this==obj ) return true; // A() and label A are different if ( !(obj instanceof ContextGetterDecl) ) return false; return name.equals(((Decl) obj).name) && getArgType().equals(((ContextGetterDecl) obj).getArgType()); } }
/** Make sure that a getter does not equal a label. X() and X are ok. * OTOH, treat X() with two diff return values as the same. Treat * two X() with diff args as different. */ @Override public boolean equals(Object obj) { if ( this==obj ) return true; // A() and label A are different if ( !(obj instanceof ContextGetterDecl) ) return false; return name.equals(((Decl) obj).name) && getArgType().equals(((ContextGetterDecl) obj).getArgType()); } }
/** Make sure that a getter does not equal a label. X() and X are ok. * OTOH, treat X() with two diff return values as the same. Treat * two X() with diff args as different. */ @Override public boolean equals(Object obj) { if ( this==obj ) return true; // A() and label A are different if ( !(obj instanceof ContextGetterDecl) ) return false; return name.equals(((Decl) obj).name) && getArgType().equals(((ContextGetterDecl) obj).getArgType()); } }
/** Make sure that a getter does not equal a label. X() and X are ok. * OTOH, treat X() with two diff return values as the same. Treat * two X() with diff args as different. */ @Override public boolean equals(Object obj) { if ( this==obj ) return true; // A() and label A are different if ( !(obj instanceof ContextGetterDecl) ) return false; return name.equals(((Decl) obj).name) && getArgType().equals(((ContextGetterDecl) obj).getArgType()); } }
@Override public int hashCode() { int hash = MurmurHash.initialize(); hash = MurmurHash.update(hash, name); hash = MurmurHash.update(hash, getArgType()); hash = MurmurHash.finish(hash, 2); return hash; }
@Override public int hashCode() { int hash = MurmurHash.initialize(); hash = MurmurHash.update(hash, name); hash = MurmurHash.update(hash, getArgType()); hash = MurmurHash.finish(hash, 2); return hash; }
@Override public int hashCode() { int hash = MurmurHash.initialize(); hash = MurmurHash.update(hash, name); hash = MurmurHash.update(hash, getArgType()); hash = MurmurHash.finish(hash, 2); return hash; }
@Override public int hashCode() { int hash = MurmurHash.initialize(); hash = MurmurHash.update(hash, name); hash = MurmurHash.update(hash, getArgType()); hash = MurmurHash.finish(hash, 2); return hash; }
@Override public int hashCode() { int hash = MurmurHash.initialize(); hash = MurmurHash.update(hash, name); hash = MurmurHash.update(hash, getArgType()); hash = MurmurHash.finish(hash, 2); return hash; }