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
ConstructorsConstructorDescriptionBooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, SearchRestriction... restrictions) BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, Collection<? extends SearchRestriction> restrictions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the boolean logic used against the collection ofSearchRestrictionreturned byBooleanRestriction.getRestrictions()to determine if an item should be included in a search result.final Collection<SearchRestriction>Returns a collection of restrictions.inthashCode()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:BooleanRestrictionReturns 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:
getRestrictionsin interfaceBooleanRestriction- Returns:
- a collection of
SearchRestriction - See Also:
-
getBooleanLogic
Description copied from interface:BooleanRestrictionReturns the boolean logic used against the collection ofSearchRestrictionreturned byBooleanRestriction.getRestrictions()to determine if an item should be included in a search result.- Specified by:
getBooleanLogicin interfaceBooleanRestriction- Returns:
- boolean logic
-
toString
-
equals
-
hashCode
public int hashCode()
-