|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Predicate | |
|---|---|
| com.google.common.base | Basic utility libraries and interfaces. |
| Uses of Predicate in com.google.common.base |
|---|
| Classes in com.google.common.base that implement Predicate | |
|---|---|
class |
CharMatcher
Determines a true or false value for any Java char value, just as
Predicate does for any Object. |
| 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 if each of its
components evaluates to true. |
|
static
|
Predicates.and(Predicate<? super T>... components)
Returns a predicate that evaluates to true if 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 if both of its
components evaluate to true. |
|
static
|
Predicates.compose(Predicate<B> predicate,
Function<A,? extends B> function)
Returns the composition of a function and a predicate. |
|
static Predicate<java.lang.CharSequence> |
Predicates.contains(java.util.regex.Pattern pattern)
Returns a predicate that evaluates to true if the
CharSequence being tested contains any match for the given
regular expression pattern. |
|
static Predicate<java.lang.CharSequence> |
Predicates.containsPattern(java.lang.String pattern)
Returns a predicate that evaluates to true if the
CharSequence being tested contains any match for the given
regular expression pattern. |
|
static
|
Predicates.equalTo(T target)
Returns a predicate that evaluates to true if the object being
tested equals() the given target or both are null. |
|
static
|
Predicates.in(java.util.Collection<? extends T> target)
Returns a predicate that evaluates to true if the object reference
being tested is a member of the given collection. |
|
static Predicate<java.lang.Object> |
Predicates.instanceOf(java.lang.Class<?> clazz)
Returns a predicate that evaluates to true if the object being
tested is an instance of the given class. |
|
static
|
Predicates.isNull()
Returns a predicate that evaluates to true if the object reference
being tested is null. |
|
static
|
Predicates.not(Predicate<T> predicate)
Returns a predicate that evaluates to true if 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 if any one of its
components evaluates to true. |
|
static
|
Predicates.or(Predicate<? super T>... components)
Returns a predicate that evaluates to true if 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 if 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 if 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 if 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 if both of its
components evaluate to true. |
|
static
|
Predicates.compose(Predicate<B> predicate,
Function<A,? extends B> function)
Returns the composition of a function and a predicate. |
|
static CharMatcher |
CharMatcher.forPredicate(Predicate<? super java.lang.Character> predicate)
Returns a matcher with identical behavior to the given Character-based predicate, but which operates on primitive char
instances instead. |
|
static
|
Functions.forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs. |
|
static
|
Predicates.not(Predicate<T> predicate)
Returns a predicate that evaluates to true if the given predicate
evaluates to false. |
|
static
|
Predicates.or(Predicate<? super T>... components)
Returns a predicate that evaluates to true if 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 if 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 if 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 if 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 if any one of its
components evaluates to true. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||