Uses of Interface
com.google.common.base.Predicate

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
 

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
<T> Predicate<T>
Predicates.alwaysFalse()
          Returns a predicate that always evaluates to false.
static
<T> Predicate<T>
Predicates.alwaysTrue()
          Returns a predicate that always evaluates to true.
static
<T> Predicate<T>
Predicates.and(Iterable<? extends Predicate<? super T>> components)
          Returns a predicate that evaluates to true if each of its components evaluates to true.
static
<T> Predicate<T>
Predicates.and(Predicate<? super T>... components)
          Returns a predicate that evaluates to true if each of its components evaluates to true.
static
<T> Predicate<T>
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
<A,B> Predicate<A>
Predicates.compose(Predicate<B> predicate, Function<A,? extends B> function)
          Returns the composition of a function and a predicate.
static
<T> Predicate<T>
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
<T> Predicate<T>
Predicates.in(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<Object> Predicates.instanceOf(Class<?> clazz)
          Returns a predicate that evaluates to true if the object being tested is an instance of the given class.
static
<T> Predicate<T>
Predicates.isNull()
          Returns a predicate that evaluates to true if the object reference being tested is null.
static
<T> Predicate<T>
Predicates.not(Predicate<T> predicate)
          Returns a predicate that evaluates to true if the given predicate evaluates to false.
static
<T> Predicate<T>
Predicates.notNull()
          Returns a predicate that evaluates to true if the object reference being tested is not null.
static
<T> Predicate<T>
Predicates.or(Iterable<? extends Predicate<? super T>> components)
          Returns a predicate that evaluates to true if any one of its components evaluates to true.
static
<T> Predicate<T>
Predicates.or(Predicate<? super T>... components)
          Returns a predicate that evaluates to true if any one of its components evaluates to true.
static
<T> Predicate<T>
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
<T> Predicate<T>
Predicates.and(Predicate<? super T>... components)
          Returns a predicate that evaluates to true if each of its components evaluates to true.
static
<T> Predicate<T>
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
<T> Predicate<T>
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
<A,B> Predicate<A>
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 Character> predicate)
          Returns a matcher with identical behavior to the given Character-based predicate, but which operates on primitive char instances instead.
static
<T> Function<T,Boolean>
Functions.forPredicate(Predicate<T> predicate)
          Creates a function that returns the same boolean output as the given predicate for all inputs.
static
<T> Predicate<T>
Predicates.not(Predicate<T> predicate)
          Returns a predicate that evaluates to true if the given predicate evaluates to false.
static
<T> Predicate<T>
Predicates.or(Predicate<? super T>... components)
          Returns a predicate that evaluates to true if any one of its components evaluates to true.
static
<T> Predicate<T>
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
<T> Predicate<T>
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
<T> Predicate<T>
Predicates.and(Iterable<? extends Predicate<? super T>> components)
          Returns a predicate that evaluates to true if each of its components evaluates to true.
static
<T> Predicate<T>
Predicates.or(Iterable<? extends Predicate<? super T>> components)
          Returns a predicate that evaluates to true if 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
<T> boolean
Iterables.all(Iterable<T> iterable, Predicate<? super T> predicate)
          Returns true if every element in iterable satisfies the predicate.
static
<T> boolean
Iterators.all(Iterator<T> iterator, Predicate<? super T> predicate)
          Returns true if every element returned by iterator satisfies the given predicate.
static
<T> boolean
Iterables.any(Iterable<T> iterable, Predicate<? super T> predicate)
          Returns true if one or more elements in iterable satisfy the predicate.
static
<T> boolean
Iterators.any(Iterator<T> iterator, Predicate<? super T> predicate)
          Returns true if one or more elements returned by iterator satisfy the given predicate.
static
<E> Collection<E>
Collections2.filter(Collection<E> unfiltered, Predicate<? super E> predicate)
          Returns the elements of unfiltered that satisfy a predicate.
static
<T> Iterable<T>
Iterables.filter(Iterable<T> unfiltered, Predicate<? super T> predicate)
          Returns the elements of unfiltered that satisfy a predicate.
static
<T> UnmodifiableIterator<T>
Iterators.filter(Iterator<T> unfiltered, Predicate<? super T> predicate)
          Returns the elements of unfiltered that satisfy a predicate.
static
<E> Set<E>
Sets.filter(Set<E> unfiltered, Predicate<? super E> predicate)
          Returns the elements of unfiltered that satisfy a predicate.
static
<K,V> Map<K,V>
Maps.filterEntries(Map<K,V> unfiltered, Predicate<? super Map.Entry<K,V>> entryPredicate)
          Returns a map containing the mappings in unfiltered that satisfy a predicate.
static
<K,V> Map<K,V>
Maps.filterKeys(Map<K,V> unfiltered, Predicate<? super K> keyPredicate)
          Returns a map containing the mappings in unfiltered whose keys satisfy a predicate.
static
<K,V> Map<K,V>
Maps.filterValues(Map<K,V> unfiltered, Predicate<? super V> valuePredicate)
          Returns a map containing the mappings in unfiltered whose values satisfy a predicate.
static
<T> T
Iterables.find(Iterable<T> iterable, Predicate<? super T> predicate)
          Returns the first element in iterable that satisfies the given predicate.
static
<T> T
Iterators.find(Iterator<T> iterator, Predicate<? super T> predicate)
          Returns the first element in iterator that satisfies the given predicate.
static
<T> int
Iterables.indexOf(Iterable<T> iterable, Predicate<? super T> predicate)
          Returns the index in iterable of the first element that satisfies the provided predicate, or -1 if the Iterable has no such elements.
static
<T> int
Iterators.indexOf(Iterator<T> iterator, Predicate<? super T> predicate)
          Returns the index in iterator of the first element that satisfies the provided predicate, or -1 if the Iterator has no such elements.
static
<T> boolean
Iterables.removeIf(Iterable<T> removeFrom, Predicate<? super T> predicate)
          Removes, from an iterable, every element that satisfies the provided predicate.
static
<T> boolean
Iterators.removeIf(Iterator<T> removeFrom, Predicate<? super T> predicate)
          Removes every element that satisfies the provided predicate from the iterator.