| Method from org.apache.lucene.search.BooleanClause Detail: |
public boolean equals(Object o) {
if (o == null || !(o instanceof BooleanClause))
return false;
BooleanClause other = (BooleanClause)o;
return this.query.equals(other.query)
&& this.occur == other.occur;
}
Returns true if o is equal to this. |
public Occur getOccur() {
return occur;
}
|
public Query getQuery() {
return query;
}
|
public int hashCode() {
return query.hashCode() ^ (Occur.MUST == occur?1:0) ^ (Occur.MUST_NOT == occur?2:0);
}
Returns a hash code value for this object. |
public boolean isProhibited() {
return Occur.MUST_NOT == occur;
}
|
public boolean isRequired() {
return Occur.MUST == occur;
}
|
public void setOccur(Occur occur) {
this.occur = occur;
}
|
public void setQuery(Query query) {
this.query = query;
}
|
public String toString() {
return occur.toString() + query.toString();
}
|