com.atlassian.crowd.search.query.entity.restriction
Class BooleanRestrictionImpl
java.lang.Object
com.atlassian.crowd.search.query.entity.restriction.BooleanRestrictionImpl
- All Implemented Interfaces:
- SearchRestriction, BooleanRestriction
public class BooleanRestrictionImpl
- extends java.lang.Object
- implements BooleanRestriction
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BooleanRestrictionImpl
public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic,
SearchRestriction... restrictions)
BooleanRestrictionImpl
public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic,
java.util.Collection<SearchRestriction> restrictions)
getRestrictions
public final java.util.Collection<SearchRestriction> getRestrictions()
- Description copied from interface:
BooleanRestriction
- Returns a collection of restrictions. Only items satisfying the restrictions using the boolean logic are returned.
I.e. if the list of restrictions are empty, then no results are returned.
- Specified by:
getRestrictions
in interface BooleanRestriction
- Returns:
- a collection of SearchRestriction
- See Also:
to implement no restrictions.
getBooleanLogic
public final BooleanRestriction.BooleanLogic getBooleanLogic()
- Description copied from interface:
BooleanRestriction
- Returns the boolean logic used against the collection of SearchRestriction returned by
BooleanRestriction.getRestrictions()
to determine if an item should be included in a search result.
- Specified by:
getBooleanLogic
in interface BooleanRestriction
- Returns:
- boolean logic
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2010 Atlassian. All Rights Reserved.