| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Predicate | |
|---|---|
| com.google.common.base | Basic utility libraries and interfaces. | 
| 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 | CharMatcherDetermines a true or false value for any Java charvalue, just asPredicatedoes
 for anyObject. | 
| 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(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to trueif each of its
 components evaluates totrue. | |
| static
 | Predicates.and(Predicate<? super T>... components)Returns a predicate that evaluates to trueif each of its
 components evaluates totrue. | |
| static
 | Predicates.and(Predicate<? super T> first,
       Predicate<? super T> second)Returns a predicate that evaluates to trueif both of its
 components evaluate totrue. | |
| static Predicate<Class<?>> | Predicates.assignableFrom(Class<?> clazz)Returns a predicate that evaluates to trueif the class being
 tested is assignable from the given class. | |
| static
 | Predicates.compose(Predicate<B> predicate,
               Function<A,? extends B> function)Returns the composition of a function and a predicate. | |
| static Predicate<CharSequence> | Predicates.contains(Pattern pattern)Returns a predicate that evaluates to trueif theCharSequencebeing tested contains any match for the given
 regular expression pattern. | |
| static Predicate<CharSequence> | Predicates.containsPattern(String pattern)Returns a predicate that evaluates to trueif theCharSequencebeing tested contains any match for the given
 regular expression pattern. | |
| static
 | Predicates.equalTo(T target)Returns a predicate that evaluates to trueif the object being
 testedequals()the given target or both are null. | |
|  Predicate<T> | Equivalence.equivalentTo(T target)Returns a predicate that evaluates to true if and only if the input is equivalent to targetaccording to this equivalence relation. | |
| static
 | Predicates.in(Collection<? extends T> target)Returns a predicate that evaluates to trueif 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 trueif the object being
 tested is an instance of the given class. | |
| static
 | Predicates.isNull()Returns a predicate that evaluates to trueif the object reference
 being tested is null. | |
| static
 | Predicates.not(Predicate<T> predicate)Returns a predicate that evaluates to trueif the given predicate
 evaluates tofalse. | |
| static
 | Predicates.notNull()Returns a predicate that evaluates to trueif the object reference
 being tested is not null. | |
| static
 | Predicates.or(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to trueif any one of its
 components evaluates totrue. | |
| static
 | Predicates.or(Predicate<? super T>... components)Returns a predicate that evaluates to trueif any one of its
 components evaluates totrue. | |
| static
 | Predicates.or(Predicate<? super T> first,
     Predicate<? super T> second)Returns a predicate that evaluates to trueif either of its
 components evaluates totrue. | |
| Methods in com.google.common.base with parameters of type Predicate | ||
|---|---|---|
| static
 | Predicates.and(Predicate<? super T>... components)Returns a predicate that evaluates to trueif each of its
 components evaluates totrue. | |
| static
 | Predicates.and(Predicate<? super T> first,
       Predicate<? super T> second)Returns a predicate that evaluates to trueif both of its
 components evaluate totrue. | |
| static
 | Predicates.and(Predicate<? super T> first,
       Predicate<? super T> second)Returns a predicate that evaluates to trueif both of its
 components evaluate totrue. | |
| 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 Character> predicate)Returns a matcher with identical behavior to the given Character-based predicate, but
 which operates on primitivecharinstances 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 trueif the given predicate
 evaluates tofalse. | |
| static
 | Predicates.or(Predicate<? super T>... components)Returns a predicate that evaluates to trueif any one of its
 components evaluates totrue. | |
| static
 | Predicates.or(Predicate<? super T> first,
     Predicate<? super T> second)Returns a predicate that evaluates to trueif either of its
 components evaluates totrue. | |
| static
 | Predicates.or(Predicate<? super T> first,
     Predicate<? super T> second)Returns a predicate that evaluates to trueif either of its
 components evaluates totrue. | |
| Method parameters in com.google.common.base with type arguments of type Predicate | ||
|---|---|---|
| static
 | Predicates.and(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to trueif each of its
 components evaluates totrue. | |
| static
 | Predicates.or(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to trueif any one of its
 components evaluates totrue. | |
| Uses of Predicate in com.google.common.collect | 
|---|
| Classes in com.google.common.collect that implement Predicate | |
|---|---|
|  class | Range<C extends Comparable>A range, sometimes known as an interval, is a convex (informally, "contiguous" or "unbroken") portion of a particular domain. | 
| Methods in com.google.common.collect with parameters of type Predicate | ||
|---|---|---|
| static
 | Iterables.all(Iterable<T> iterable,
       Predicate<? super T> predicate)Returns trueif every element initerablesatisfies the
 predicate. | |
| static
 | Iterators.all(Iterator<T> iterator,
       Predicate<? super T> predicate)Returns trueif every element returned byiteratorsatisfies the given predicate. | |
| static
 | Iterables.any(Iterable<T> iterable,
       Predicate<? super T> predicate)Returns trueif one or more elements initerablesatisfy
 the predicate. | |
| static
 | Iterators.any(Iterator<T> iterator,
       Predicate<? super T> predicate)Returns trueif one or more elements returned byiteratorsatisfy the given predicate. | |
| static
 | Collections2.filter(Collection<E> unfiltered,
             Predicate<? super E> predicate)Returns the elements of unfilteredthat satisfy a predicate. | |
| static
 | Iterables.filter(Iterable<T> unfiltered,
             Predicate<? super T> predicate)Returns the elements of unfilteredthat satisfy a predicate. | |
| static
 | Iterators.filter(Iterator<T> unfiltered,
             Predicate<? super T> predicate)Returns the elements of unfilteredthat satisfy a predicate. | |
| static
 | Sets.filter(Set<E> unfiltered,
             Predicate<? super E> predicate)Returns the elements of unfilteredthat satisfy a predicate. | |
| static
 | Maps.filterEntries(Map<K,V> unfiltered,
                           Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a map containing the mappings in unfilteredthat satisfy a
 predicate. | |
| static
 | SortedMaps.filterEntries(SortedMap<K,V> unfiltered,
                           Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a sorted map containing the mappings in unfilteredthat
 satisfy a predicate. | |
| static
 | Maps.filterKeys(Map<K,V> unfiltered,
                     Predicate<? super K> keyPredicate)Returns a map containing the mappings in unfilteredwhose keys
 satisfy a predicate. | |
| static
 | SortedMaps.filterKeys(SortedMap<K,V> unfiltered,
                     Predicate<? super K> keyPredicate)Returns a sorted map containing the mappings in unfilteredwhose
 keys satisfy a predicate. | |
| static
 | Maps.filterValues(Map<K,V> unfiltered,
                         Predicate<? super V> valuePredicate)Returns a map containing the mappings in unfilteredwhose values
 satisfy a predicate. | |
| static
 | SortedMaps.filterValues(SortedMap<K,V> unfiltered,
                         Predicate<? super V> valuePredicate)Returns a sorted map containing the mappings in unfilteredwhose
 values satisfy a predicate. | |
| static
 | Iterables.find(Iterable<T> iterable,
         Predicate<? super T> predicate)Returns the first element in iterablethat satisfies the given
 predicate. | |
| static
 | Iterables.find(Iterable<T> iterable,
         Predicate<? super T> predicate,
         T defaultValue)Returns the first element in iterablethat satisfies the given
 predicate, ordefaultValueif none found. | |
| static
 | Iterators.find(Iterator<T> iterator,
         Predicate<? super T> predicate)Returns the first element in iteratorthat satisfies the given
 predicate. | |
| static
 | Iterators.find(Iterator<T> iterator,
         Predicate<? super T> predicate,
         T defaultValue)Returns the first element in iteratorthat satisfies the given
 predicate. | |
| static
 | Iterables.indexOf(Iterable<T> iterable,
               Predicate<? super T> predicate)Returns the index in iterableof the first element that satisfies
 the providedpredicate, or-1if the Iterable has no such
 elements. | |
| static
 | Iterators.indexOf(Iterator<T> iterator,
               Predicate<? super T> predicate)Returns the index in iteratorof the first element that satisfies
 the providedpredicate, or-1if the Iterator has no such
 elements. | |
| static
 | Iterables.removeIf(Iterable<T> removeFrom,
                 Predicate<? super T> predicate)Removes, from an iterable, every element that satisfies the provided predicate. | |
| static
 | Iterators.removeIf(Iterator<T> removeFrom,
                 Predicate<? super T> predicate)Removes every element that satisfies the provided predicate from the iterator. | |
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||