boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; HgNameWithHashInfo info = (HgNameWithHashInfo)o; return (myName.equals(info.myName)) && myHash.equals(info.myHash); }