@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + id.hashCode(); result = prime * result + query.hashCode(); return result; }
@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; }
@Override public String toString() { return getClass().getSimpleName() + "[id: " + id + " query: " + query.getName() + "]"; }