boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AttributesBasedKey key = (AttributesBasedKey)o; if (!myId.equals(key.myId)) return false; if (!myAttributes.equals(key.myAttributes)) return false; return true; }