public class CompositePredicate extends RenderingModePredicate
A logical concatenation of n predicates, which itself is again a predicate.
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePredicate.Operator
The logical operator which defines the type of concatenation.
|
| Constructor and Description |
|---|
CompositePredicate(CompositePredicate.Operator operator,
Collection<? extends Predicate> predicates)
Creates a predicate instance which concatenates the given predicates with the specified operator.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate |
apply(Function<Predicate,Predicate> transformation)
Applies the given transformation, returning the transformed predicate.
|
RenderingModePredicate |
createRenderingModePredicate(RenderingMode renderingMode)
create the same predicate but with given renderingMode flag
|
CompositePredicate.Operator |
getOperator()
The logical operator which defines the type of concatenation.
|
com.google.common.collect.ImmutableList<Predicate> |
getPredicates()
All predicates to be concatenated.
|
String |
toString() |
forceRenderingMode, getRenderingModeand, not, orpublic CompositePredicate(CompositePredicate.Operator operator, Collection<? extends Predicate> predicates)
Creates a predicate instance which concatenates the given predicates with the specified operator.
predicates - all predicates to be concatenatedoperator - the logical operatorpublic CompositePredicate.Operator getOperator()
The logical operator which defines the type of concatenation.
public com.google.common.collect.ImmutableList<Predicate> getPredicates()
All predicates to be concatenated.
public RenderingModePredicate createRenderingModePredicate(RenderingMode renderingMode)
RenderingModePredicatecreate the same predicate but with given renderingMode flag
createRenderingModePredicate in class RenderingModePredicaterenderingMode - flag to set in the predicatepublic Predicate apply(Function<Predicate,Predicate> transformation)
PredicateApplies the given transformation, returning the transformed predicate.
If the predicate implementation wraps sub-predicates then this method needs to be overwritten to transform the sub-predicates as well.
apply in interface Predicateapply in class BasePredicatetransformation - the predicate transformation to be appliedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.