| Constructor and Description |
|---|
Logic.Unary() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
always()
Creates a predicate always yielding true.
|
static <T> Predicate<T> |
and(Iterable<Predicate<T>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T> Predicate<T> |
and(Iterator<Predicate<T>> predicates)
Creates a composite AND predicate from the given predicates.
|
static <T> Predicate<T> |
never()
Creates a predicate always yielding false.
|
static <T> Predicate<T> |
or(Iterable<Predicate<T>> predicates)
Creates a composite OR predicate from the given predicates.
|
static <T> Predicate<T> |
or(Iterator<Predicate<T>> predicates)
Creates a composite OR predicate from the given predicates.
|
public static <T> Predicate<T> and(Iterable<Predicate<T>> predicates)
T - the element type parameterpredicates - the predicates to be composedpublic static <T> Predicate<T> and(Iterator<Predicate<T>> predicates)
T - the element type parameterpredicates - the predicates to be composedpublic static <T> Predicate<T> or(Iterable<Predicate<T>> predicates)
T - the element type parameterpredicates - the predicates to be composedpublic static <T> Predicate<T> or(Iterator<Predicate<T>> predicates)
T - the element type parameterpredicates - the predicates to be composedpublic static <T> Predicate<T> always()
T - the element type parameterpublic static <T> Predicate<T> never()
T - the element type parameterCopyright © 2013. All rights reserved.