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, getRenderingMode
and, not, or
public 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)
RenderingModePredicate
create the same predicate but with given renderingMode flag
createRenderingModePredicate
in class RenderingModePredicate
renderingMode
- flag to set in the predicatepublic Predicate apply(Function<Predicate,Predicate> transformation)
Predicate
Applies 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 Predicate
apply
in class BasePredicate
transformation
- the predicate transformation to be appliedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.