ENTITY
- the entity typepublic interface CombinedPredicate<ENTITY> extends Predicate<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 |
---|---|
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() |
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.
|
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> 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 operationCopyright © 2017 Speedment, Inc.. All rights reserved.