Interface BooleanRestriction
- All Superinterfaces:
SearchRestriction
- All Known Implementing Classes:
BooleanRestrictionImpl
A boolean search restriction. Users of this interface will ensure that only items satisfying all the restrictions
returned by
getRestrictions() using the boolean logic returned by getBooleanLogic() are returned.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the boolean logic used against the collection ofSearchRestrictionreturned bygetRestrictions()to determine if an item should be included in a search result.Returns a collection of restrictions.
-
Method Details
-
getRestrictions
Collection<SearchRestriction> getRestrictions()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.- Returns:
- a collection of
SearchRestriction - See Also:
-
getBooleanLogic
BooleanRestriction.BooleanLogic getBooleanLogic()Returns the boolean logic used against the collection ofSearchRestrictionreturned bygetRestrictions()to determine if an item should be included in a search result.- Returns:
- boolean logic
-