Class BooleanRestrictionImpl
java.lang.Object
com.atlassian.crowd.search.query.entity.restriction.BooleanRestrictionImpl
- All Implemented Interfaces:
SearchRestriction
,BooleanRestriction
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction
BooleanRestriction.BooleanLogic
-
Constructor Summary
ConstructorDescriptionBooleanRestrictionImpl
(BooleanRestriction.BooleanLogic booleanLogic, SearchRestriction... restrictions) BooleanRestrictionImpl
(BooleanRestriction.BooleanLogic booleanLogic, Collection<? extends SearchRestriction> restrictions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the boolean logic used against the collection ofSearchRestriction
returned byBooleanRestriction.getRestrictions()
to determine if an item should be included in a search result.final Collection<SearchRestriction>
Returns a collection of restrictions.int
hashCode()
toString()
-
Constructor Details
-
BooleanRestrictionImpl
public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, SearchRestriction... restrictions) -
BooleanRestrictionImpl
public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, Collection<? extends SearchRestriction> restrictions)
-
-
Method Details
-
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 interfaceBooleanRestriction
- Returns:
- a collection of
SearchRestriction
- See Also:
-
getBooleanLogic
Description copied from interface:BooleanRestriction
Returns the boolean logic used against the collection ofSearchRestriction
returned byBooleanRestriction.getRestrictions()
to determine if an item should be included in a search result.- Specified by:
getBooleanLogic
in interfaceBooleanRestriction
- Returns:
- boolean logic
-
toString
-
equals
-
hashCode
public int hashCode()
-