Constructs a BooleanClause. this.query = query; this.occur = occur;
this.query = query; this.occur = occur;
Returns true iff o is equal to this. if (!(o instanceof BooleanClause)) return false; BooleanClause other = (BooleanClause)o; return this.query.equals(other.query) && this.occur.equals(other.occur);
o
if (!(o instanceof BooleanClause)) return false; BooleanClause other = (BooleanClause)o; return this.query.equals(other.query) && this.occur.equals(other.occur);
return occur;
return query;
Returns a hash code value for this object. return query.hashCode() ^ (Occur.MUST.equals(occur)?1:0) ^ (Occur.MUST_NOT.equals(occur)?2:0);
return query.hashCode() ^ (Occur.MUST.equals(occur)?1:0) ^ (Occur.MUST_NOT.equals(occur)?2:0);
return Occur.MUST_NOT.equals(occur);
return Occur.MUST.equals(occur);
this.occur = occur;
this.query = query;
return occur.toString() + query.toString();