public final class MultipleNamedValuePredicate
extends com.edorasware.api.query.internal.BasePredicate
A marker predicate which isolates multiple variable / property predicates from each other.
Modifier and Type | Method and Description |
---|---|
Predicate |
apply(Function<Predicate,Predicate> transformation)
Applies the given transformation, returning the transformed predicate.
|
Predicate |
getPredicate()
Returns the marked predicate.
|
static Predicate |
match(Predicate predicate)
Marks the given predicate.
|
static Predicate |
matchAll(List<? extends Predicate> predicates)
Marks each given predicate and combines them with the AND operator.
|
static Predicate |
matchAll(Predicate one,
Predicate two,
Predicate... more)
Marks each given predicate and combines them with the AND operator.
|
static Predicate |
matchAny(List<? extends Predicate> predicates)
Marks each given predicate and combines them with the OR operator.
|
static Predicate |
matchAny(Predicate one,
Predicate two,
Predicate... more)
Marks each given predicate and combines them with the AND operator.
|
String |
toString() |
public Predicate getPredicate()
Returns the marked predicate.
public static Predicate matchAll(List<? extends Predicate> predicates)
Marks each given predicate and combines them with the AND operator.
predicates
- the predicates to markpublic static Predicate matchAny(List<? extends Predicate> predicates)
Marks each given predicate and combines them with the OR operator.
predicates
- the predicates to markpublic static Predicate match(Predicate predicate)
Marks the given predicate.
predicate
- the predicate to be markedpublic static Predicate matchAll(Predicate one, Predicate two, Predicate... more)
Marks each given predicate and combines them with the AND operator.
one
- the first predicatetwo
- the second predicatemore
- all further predicatespublic static Predicate matchAny(Predicate one, Predicate two, Predicate... more)
Marks each given predicate and combines them with the AND operator.
one
- the first predicatetwo
- the second predicatemore
- all further predicatespublic 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.
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.