ENTITY
- the entity typepublic interface CombinedPredicate<ENTITY> extends SpeedmentPredicate<ENTITY>
Predicates
of the same type
(e.g. AND or OR) that can be applied in combination.Modifier and Type | Interface and Description |
---|---|
static class |
CombinedPredicate.Type
This enum list all the different types of combinations
|
Modifier and Type | Method and Description |
---|---|
static <ENTITY> CombinedPredicate<ENTITY> |
and(List<Predicate<? super ENTITY>> predicates)
Creates and returns a new CombinedPredicate that is the logical AND
combination of the given predicates.
|
CombinedPredicate<ENTITY> |
and(Predicate<? super ENTITY> other) |
static <ENTITY> CombinedPredicate<ENTITY> |
and(Predicate<ENTITY> first,
Predicate<? super ENTITY> second)
Creates and returns a new CombinedPredicate that is the logical AND
combination of the given predicates.
|
CombinedPredicate.Type |
getType()
Returns the
CombinedPredicate.Type of this CombinedBasePredicate |
CombinedPredicate<ENTITY> |
negate() |
static <ENTITY> CombinedPredicate<ENTITY> |
or(List<Predicate<? super ENTITY>> predicates)
Creates or returns a new CombinedPredicate that is the logical OR
combination of the given predicates.
|
CombinedPredicate<ENTITY> |
or(Predicate<? super ENTITY> other) |
static <ENTITY> CombinedPredicate<ENTITY> |
or(Predicate<ENTITY> first,
Predicate<? super ENTITY> second)
Creates and returns a new CombinedPredicate that is the logical OR
combination of the given predicates.
|
int |
size()
Returns the number of predicates that this CombinedBasePredicate holds
|
Stream<Predicate<? super ENTITY>> |
stream()
Creates and returns a {link Stream} of all predicates that this
CombinedPredicate holds.
|
compose
applyAsBoolean, asDouble, asInt, asLong, compare, composeNullable, expressionType, hash, map, mapToDouble, of
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Stream<Predicate<? super ENTITY>> stream()
int size()
CombinedPredicate.Type getType()
CombinedPredicate.Type
of this CombinedBasePredicateCombinedPredicate.Type
of this CombinedBasePredicateCombinedPredicate<ENTITY> and(Predicate<? super ENTITY> other)
CombinedPredicate<ENTITY> or(Predicate<? super ENTITY> other)
CombinedPredicate<ENTITY> negate()
static <ENTITY> CombinedPredicate<ENTITY> and(Predicate<ENTITY> first, Predicate<? super ENTITY> second)
ENTITY
- entity typefirst
- the first predicate used in the AND operationsecond
- the first predicate used in the AND operationstatic <ENTITY> CombinedPredicate<ENTITY> and(List<Predicate<? super ENTITY>> predicates)
ENTITY
- entity typepredicates
- the predicates that make up the AND operationstatic <ENTITY> CombinedPredicate<ENTITY> or(Predicate<ENTITY> first, Predicate<? super ENTITY> second)
ENTITY
- entity typefirst
- the first predicate used in the OR operationsecond
- the first predicate used in the OR operationstatic <ENTITY> CombinedPredicate<ENTITY> or(List<Predicate<? super ENTITY>> predicates)
ENTITY
- entity typepredicates
- the predicates that make up the OR operationCopyright © 2018 Speedment, Inc.. All rights reserved.