public class NotPredicate extends RenderingModePredicate
Negating wrapper around an arbitrary predicate.
| Constructor and Description |
|---|
NotPredicate(Predicate predicate)
Constructs a new instance which wraps the given predicate.
|
| 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
|
Predicate |
getPredicate()
The predicate to be negated.
|
String |
toString() |
forceRenderingMode, getRenderingModeand, not, orpublic NotPredicate(Predicate predicate)
Constructs a new instance which wraps the given predicate.
predicate - to be negatedpublic Predicate getPredicate()
The predicate to be negated.
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 - 2019 edorasware ag. All Rights Reserved.