@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (openQuery ? 1231 : 1237); result = prime * result + ((queryElement == null) ? 0 : queryElement.hashCode()); result = prime * result + ((tupleSource == null) ? 0 : tupleSource.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; QueryElementNode other = (QueryElementNode) obj; if (openQuery != other.openQuery) return false; if (queryElement == null) { if (other.queryElement != null) return false; } else if (!queryElement.equals(other.queryElement)) return false; if (tupleSource == null) { if (other.tupleSource != null) return false; } else if (!tupleSource.equals(other.tupleSource)) return false; return true; }