/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return getSelectorNames().hashCode(); }
/** * Get the selector symbol upon which this operand applies. * * @return the one selector names used by this operand; never null */ public SelectorName getSelectorName() { return getSelectorNames().iterator().next(); }
/** * {@inheritDoc} * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof FullTextSearchScore) { FullTextSearchScore that = (FullTextSearchScore)obj; if (!this.getSelectorNames().equals(that.getSelectorNames())) { return false; } return true; } return false; }