public boolean equals(Object obj) { if (!(obj instanceof Data)) { return false; } Data d = ((Data) obj); return from.equals(d.from) && to.equals(d.to); }
@Override public boolean equals(Object o) { if (o instanceof GetPrimaryKeyCacheKey) { GetPrimaryKeyCacheKey key = (GetPrimaryKeyCacheKey) o; return (cld == key.cld) && source.equals(key.source); } return false; }
@Override public boolean equals(Object o) { if (o instanceof PrimaryKeyCacheKey) { PrimaryKeyCacheKey pkck = (PrimaryKeyCacheKey) o; return (model == pkck.model) && clazz.equals(pkck.clazz) && source.equals(pkck.source); } return false; }