| Constructor and Description |
|---|
Logic.Binary() |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BinaryPredicate<T1,T2> |
always()
Creates a predicate always yielding true.
|
static <T1,T2> BinaryPredicate<T1,T2> |
and(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
and(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
never()
Creates a predicate always yielding false.
|
static <T1,T2> BinaryPredicate<T1,T2> |
or(Iterable<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T1,T2> BinaryPredicate<T1,T2> |
or(Iterator<BinaryPredicate<T1,T2>> predicates)
Creates a composite OR predicate from the given predicates.
|
public static <T1,T2> BinaryPredicate<T1,T2> and(Iterable<BinaryPredicate<T1,T2>> predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - the predicates to be composedpublic static <T1,T2> BinaryPredicate<T1,T2> and(Iterator<BinaryPredicate<T1,T2>> predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - the predicates to be composedpublic static <T1,T2> BinaryPredicate<T1,T2> or(Iterable<BinaryPredicate<T1,T2>> predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - the predicates to be composedpublic static <T1,T2> BinaryPredicate<T1,T2> or(Iterator<BinaryPredicate<T1,T2>> predicates)
T1 - the former element type parameterT2 - the latter element type parameterpredicates - the predicates to be composedpublic static <T1,T2> BinaryPredicate<T1,T2> always()
T1 - the first element type parameterT2 - the second element type parameterpublic static <T1,T2> BinaryPredicate<T1,T2> never()
T1 - the first element type parameterT2 - the second element type parameterCopyright © 2013. All rights reserved.