@Override public boolean equals(Object other) { if (this == other) { return true; } if (other == null) { return false; } if (getClass() != other.getClass()) { return false; } BackwardsTermQuery otherQ = (BackwardsTermQuery)(other); return otherQ.backwardsQuery.equals(backwardsQuery) && otherQ.forwardsQuery.equals(forwardsQuery); }
@Override public boolean equals(final Object obj) { if (!super.equals(obj)) { return false; } final DependentTermQuery other = (DependentTermQuery) obj; if (tqIndex != other.tqIndex) return false; if (!fieldBoost.equals(other.fieldBoost)) return false; return true; // getTerm().equals(other.getTerm()); already assured in super class }
@Override public boolean equals(final Object other) { if (!super.equals(other)) { return false; } return fieldBoost.equals(((SimilarityTermQuery) other).fieldBoost); } }
@Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; FieldBoostTermQuery that = (FieldBoostTermQuery) o; if (!term.equals(that.term)) return false; return fieldBoost.equals(that.fieldBoost); }