/** Returns true if <code>o</code> is equal to this. */ @Override public boolean equals(final Object o) { if (o == null || !(o instanceof NodeBooleanClause)) return false; final NodeBooleanClause other = (NodeBooleanClause) o; return this.query.equals(other.query) && this.occur.equals(other.occur); }
@Override public boolean equals(final Object o) { if (this == o) return true; if (!super.equals(o)) return false; if (o instanceof NodeConstantScoreQuery) { final NodeConstantScoreQuery other = (NodeConstantScoreQuery) o; return ((this.filter == null) ? other.filter == null : this.filter.equals(other.filter)) && ((this.query == null) ? other.query == null : this.query.equals(other.query)) && this.levelConstraint == other.levelConstraint && this.lowerBound == other.lowerBound && this.upperBound == other.upperBound && StringUtils.equals(this.datatype, other.datatype); } return false; }
/** Returns true iff <code>o</code> is equal to this. */ @Override public boolean equals(final Object o) { if (!(o instanceof TwigQuery)) return false; final TwigQuery other = (TwigQuery) o; return (this.getBoost() == other.getBoost()) && this.clauses.equals(other.clauses) && this.root.equals(other.root); // root and twig query should have the same constraints, // no need to integrate them into the equality test }
/** Returns true iff <code>o</code> is equal to this. */ @Override public boolean equals(final Object o) { if (!(o instanceof LuceneProxyNodeQuery)) return false; final LuceneProxyNodeQuery other = (LuceneProxyNodeQuery) o; return (this.getBoost() == other.getBoost()) && this.nodeQuery.equals(other.nodeQuery); }
@Override public boolean equals(final Object o) { if (!(o instanceof AncestorFilterQuery)) { return false; } final AncestorFilterQuery other = (AncestorFilterQuery) o; return (this.getBoost() == other.getBoost()) && this.q.equals(other.q) && this.lowerBound == other.lowerBound && this.upperBound == other.upperBound && this.levelConstraint == other.levelConstraint; }