Esempio n. 1
0
 public boolean equals(Object obj) {
   if (!(obj instanceof Data)) {
     return false;
   }
   Data d = ((Data) obj);
   return from.equals(d.from) && to.equals(d.to);
 }
Esempio n. 2
0
 @Override
 public boolean equals(Object o) {
   if (o instanceof GetPrimaryKeyCacheKey) {
     GetPrimaryKeyCacheKey key = (GetPrimaryKeyCacheKey) o;
     return (cld == key.cld) && source.equals(key.source);
   }
   return false;
 }
Esempio n. 3
0
 @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;
 }