Example #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + id.hashCode();
   result = prime * result + query.hashCode();
   return result;
 }
Example #2
0
 @Override
 public boolean equals(final Object obj) {
   if (this == obj) return true;
   if (!(obj instanceof ElementId)) return false;
   final ElementId other = (ElementId) obj;
   if (!id.equals(other.id)) return false;
   if (!query.equals(other.query)) return false;
   return true;
 }
Example #3
0
 @Override
 public String toString() {
   return getClass().getSimpleName() + "[id: " + id + " query: " + query.getName() + "]";
 }