Exemplo n.º 1
0
 private int calculateHash() {
   final int prime = 31;
   int result = 1;
   result = prime * result + object.hashCode();
   result = prime * result + predicate.hashCode();
   return result;
 }
Exemplo n.º 2
0
 @Override
 public boolean equals(final Object obj) {
   if (!(obj instanceof HalfStatement)) {
     return false;
   }
   if (hash != obj.hashCode()) {
     return false;
   }
   final HalfStatement other = (HalfStatement) obj;
   if (!object.equals(other.getObject())) {
     return false;
   }
   if (!predicate.equals(other.getPredicate())) {
     return false;
   }
   return true;
 }