|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Predicate | |
|---|---|
| com.google.common.base | Miscellaneous common util classes and annotations. |
| com.google.common.collect | This package contains generic collection interfaces and implementations, and other utilities for working with collections. |
| Uses of Predicate in com.google.common.base |
|---|
| Methods in com.google.common.base that return Predicate | ||
|---|---|---|
static
|
Predicates.alwaysFalse()
Returns a predicate that always evaluates to false. |
|
static
|
Predicates.alwaysTrue()
Returns a predicate that always evaluates to true. |
|
static
|
Predicates.and(java.lang.Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true iff each of its
components evaluates to true. |
|
static
|
Predicates.and(Predicate<? super T>... components)
Returns a predicate that evaluates to true iff each of its
components evaluates to true. |
|
static
|
Predicates.and(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff both of its
components evaluate to true. |
|
static
|
Predicates.compose(Predicate<? super B> predicate,
Function<? super A,? extends B> function)
Returns the composition of a function and a predicate. |
|
static
|
Predicates.in(java.util.Collection<?> target)
Returns a predicate that evaluates to true if the object reference
being tested is a member of the given collection. |
|
static
|
Predicates.isEqualTo(T target)
Returns a predicate that evaluates to true iff the object being
tested equals() the given target or if both are null. |
|
static
|
Predicates.isNull()
Returns a predicate that evaluates to true if the object reference being tested is null. |
|
static Predicate<java.lang.Object> |
Predicates.isSameAs(java.lang.Object target)
Returns a predicate that evaluates to true iff the object being
tested refers to the same object as the given target. |
|
static
|
Predicates.not(Predicate<? super T> predicate)
Returns a predicate that evaluates to true iff the given predicate evaluates to false. |
|
static
|
Predicates.notNull()
Returns a predicate that evaluates to true if the object reference being tested is not null. |
|
static
|
Predicates.or(java.lang.Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true iff any one of its
components evaluates to true. |
|
static
|
Predicates.or(Predicate<? super T>... components)
Returns a predicate that evaluates to true iff any one of its components evaluates to true. |
|
static
|
Predicates.or(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff either of its
components evaluates to true. |
|
| Methods in com.google.common.base with parameters of type Predicate | ||
|---|---|---|
static
|
Predicates.and(Predicate<? super T>... components)
Returns a predicate that evaluates to true iff each of its
components evaluates to true. |
|
static
|
Predicates.and(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff both of its
components evaluate to true. |
|
static
|
Predicates.and(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff both of its
components evaluate to true. |
|
static
|
Predicates.compose(Predicate<? super B> predicate,
Function<? super A,? extends B> function)
Returns the composition of a function and a predicate. |
|
static
|
Functions.forPredicate(Predicate<? super T> predicate)
Returns a boolean-valued function that evaluates to the same result as the given predicate. |
|
static
|
Predicates.not(Predicate<? super T> predicate)
Returns a predicate that evaluates to true iff the given predicate evaluates to false. |
|
static
|
Predicates.or(Predicate<? super T>... components)
Returns a predicate that evaluates to true iff any one of its components evaluates to true. |
|
static
|
Predicates.or(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff either of its
components evaluates to true. |
|
static
|
Predicates.or(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true iff either of its
components evaluates to true. |
|
| Method parameters in com.google.common.base with type arguments of type Predicate | ||
|---|---|---|
static
|
Predicates.and(java.lang.Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true iff each of its
components evaluates to true. |
|
static
|
Predicates.or(java.lang.Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true iff any one of its
components evaluates to true. |
|
| Uses of Predicate in com.google.common.collect |
|---|
| Methods in com.google.common.collect with parameters of type Predicate | ||
|---|---|---|
static
|
Iterables.all(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate)
Returns true if every element in iterable satisfies the
predicate. |
|
static
|
Iterators.all(java.util.Iterator<T> iterator,
Predicate<? super T> predicate)
Returns true if every element returned by iterator
satisfies the given predicate. |
|
static
|
Iterables.any(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate)
Returns true if one or more elements in iterable satisfy
the predicate. |
|
static
|
Iterators.any(java.util.Iterator<T> iterator,
Predicate<? super T> predicate)
Returns true if one or more elements returned by iterator
satisfy the given predicate. |
|
static
|
Iterables.filter(java.lang.Iterable<T> unfiltered,
Predicate<? super T> predicate)
Returns the elements of unfiltered that satisfy a predicate. |
|
static
|
Iterators.filter(java.util.Iterator<T> unfiltered,
Predicate<? super T> predicate)
Returns the elements of unfiltered that satisfy a predicate. |
|
static
|
Iterables.find(java.lang.Iterable<E> iterable,
Predicate<? super E> predicate)
Returns the first element in iterable that satisfies the given
predicate. |
|
static
|
Iterators.find(java.util.Iterator<E> iterator,
Predicate<? super E> predicate)
Returns the first element in iterator that satisfies the given
predicate. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||