| Package | Description | 
|---|---|
| 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. | 
| com.google.common.hash | Hash functions and related structures. | 
| com.google.common.io | This package contains utility methods and classes for working with Java I/O;
 for example input streams, output streams, readers, writers, and files. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CharMatcher | 
| Modifier and Type | Method and Description | 
|---|---|
| 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  trueif each of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. and(Predicate<? super T>... components)Returns a predicate that evaluates to  trueif each of its
 components evaluates totrue. | 
| static <T> Predicate<T> | 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 <A,B> Predicate<A> | 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 <T> Predicate<T> | 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 <T> Predicate<T> | 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 <T> Predicate<T> | Predicates. isNull()Returns a predicate that evaluates to  trueif the object reference
 being tested is null. | 
| static <T> Predicate<T> | Predicates. not(Predicate<T> predicate)Returns a predicate that evaluates to  trueif the given predicate
 evaluates tofalse. | 
| static <T> Predicate<T> | Predicates. notNull()Returns a predicate that evaluates to  trueif 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  trueif any one of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. or(Predicate<? super T>... components)Returns a predicate that evaluates to  trueif any one of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. or(Predicate<? super T> first,
    Predicate<? super T> second)Returns a predicate that evaluates to  trueif either of its
 components evaluates totrue. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> Predicate<T> | Predicates. and(Predicate<? super T>... components)Returns a predicate that evaluates to  trueif each of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. and(Predicate<? super T> first,
      Predicate<? super T> second)Returns a predicate that evaluates to  trueif both of its
 components evaluate totrue. | 
| static <T> Predicate<T> | Predicates. and(Predicate<? super T> first,
      Predicate<? super T> second)Returns a predicate that evaluates to  trueif both of its
 components evaluate totrue. | 
| 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 primitivecharinstances 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  trueif the given predicate
 evaluates tofalse. | 
| static <T> Predicate<T> | Predicates. or(Predicate<? super T>... components)Returns a predicate that evaluates to  trueif any one of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. or(Predicate<? super T> first,
    Predicate<? super T> second)Returns a predicate that evaluates to  trueif either of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. or(Predicate<? super T> first,
    Predicate<? super T> second)Returns a predicate that evaluates to  trueif either of its
 components evaluates totrue. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> Predicate<T> | Predicates. and(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to  trueif each of its
 components evaluates totrue. | 
| static <T> Predicate<T> | Predicates. or(Iterable<? extends Predicate<? super T>> components)Returns a predicate that evaluates to  trueif any one of its
 components evaluates totrue. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | Range<C extends Comparable>A range (or "interval") defines the boundaries around a contiguous span of values of some
  Comparabletype; for example, "integers from 1 to 100 inclusive." Note that it is not
 possible to iterate over these contained values. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> boolean | Iterables. all(Iterable<T> iterable,
      Predicate<? super T> predicate)Returns  trueif every element initerablesatisfies the
 predicate. | 
| static <T> boolean | Iterators. all(Iterator<T> iterator,
      Predicate<? super T> predicate)Returns  trueif every element returned byiteratorsatisfies the given predicate. | 
| boolean | FluentIterable. allMatch(Predicate<? super E> predicate)Returns  trueif every element in this fluent iterable satisfies the predicate. | 
| static <T> boolean | Iterables. any(Iterable<T> iterable,
      Predicate<? super T> predicate)Returns  trueif any element initerablesatisfies the predicate. | 
| static <T> boolean | Iterators. any(Iterator<T> iterator,
      Predicate<? super T> predicate)Returns  trueif one or more elements returned byiteratorsatisfy the given predicate. | 
| boolean | FluentIterable. anyMatch(Predicate<? super E> predicate)Returns  trueif any element in this fluent iterable satisfies the predicate. | 
| static <E> Collection<E> | Collections2. filter(Collection<E> unfiltered,
            Predicate<? super E> predicate)Returns the elements of  unfilteredthat satisfy a predicate. | 
| static <T> Iterable<T> | Iterables. filter(Iterable<T> unfiltered,
            Predicate<? super T> predicate)Returns the elements of  unfilteredthat satisfy a predicate. | 
| static <T> UnmodifiableIterator<T> | Iterators. filter(Iterator<T> unfiltered,
            Predicate<? super T> predicate)Returns the elements of  unfilteredthat satisfy a predicate. | 
| static <E> Multiset<E> | Multisets. filter(Multiset<E> unfiltered,
            Predicate<? super E> predicate)Returns a view of the elements of  unfilteredthat satisfy a predicate. | 
| static <E> NavigableSet<E> | Sets. filter(NavigableSet<E> unfiltered,
            Predicate<? super E> predicate)Returns the elements of a  NavigableSet,unfiltered, that
 satisfy a predicate. | 
| FluentIterable<E> | FluentIterable. filter(Predicate<? super E> predicate)Returns the elements from this fluent iterable that satisfy a predicate. | 
| static <E> Set<E> | Sets. filter(Set<E> unfiltered,
            Predicate<? super E> predicate)Returns the elements of  unfilteredthat satisfy a predicate. | 
| static <E> SortedSet<E> | Sets. filter(SortedSet<E> unfiltered,
            Predicate<? super E> predicate)Returns the elements of a  SortedSet,unfiltered, that
 satisfy a predicate. | 
| static <K,V> BiMap<K,V> | Maps. filterEntries(BiMap<K,V> unfiltered,
                          Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a bimap containing the mappings in  unfilteredthat 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  unfilteredthat satisfy a
 predicate. | 
| static <K,V> Multimap<K,V> | Multimaps. filterEntries(Multimap<K,V> unfiltered,
                          Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a multimap containing the mappings in  unfilteredthat
 satisfy a predicate. | 
| static <K,V> NavigableMap<K,V> | Maps. filterEntries(NavigableMap<K,V> unfiltered,
                          Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a sorted map containing the mappings in  unfilteredthat
 satisfy a predicate. | 
| static <K,V> SetMultimap<K,V> | Multimaps. filterEntries(SetMultimap<K,V> unfiltered,
                          Predicate<? super Map.Entry<K,V>> entryPredicate)Returns a multimap containing the mappings in  unfilteredthat
 satisfy a predicate. | 
| static <K,V> SortedMap<K,V> | Maps. 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 <K,V> BiMap<K,V> | Maps. filterKeys(BiMap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a bimap containing the mappings in  unfilteredwhose keys satisfy a predicate. | 
| static <K,V> ListMultimap<K,V> | Multimaps. filterKeys(ListMultimap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a multimap containing the mappings in  unfilteredwhose keys
 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  unfilteredwhose keys
 satisfy a predicate. | 
| static <K,V> Multimap<K,V> | Multimaps. filterKeys(Multimap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a multimap containing the mappings in  unfilteredwhose keys
 satisfy a predicate. | 
| static <K,V> NavigableMap<K,V> | Maps. filterKeys(NavigableMap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a navigable map containing the mappings in  unfilteredwhose
 keys satisfy a predicate. | 
| static <K,V> SetMultimap<K,V> | Multimaps. filterKeys(SetMultimap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a multimap containing the mappings in  unfilteredwhose keys
 satisfy a predicate. | 
| static <K,V> SortedMap<K,V> | Maps. filterKeys(SortedMap<K,V> unfiltered,
                    Predicate<? super K> keyPredicate)Returns a sorted map containing the mappings in  unfilteredwhose
 keys satisfy a predicate. | 
| static <K,V> BiMap<K,V> | Maps. filterValues(BiMap<K,V> unfiltered,
                        Predicate<? super V> valuePredicate)Returns a bimap containing the mappings in  unfilteredwhose values 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  unfilteredwhose values
 satisfy a predicate. | 
| static <K,V> Multimap<K,V> | Multimaps. filterValues(Multimap<K,V> unfiltered,
                        Predicate<? super V> valuePredicate)Returns a multimap containing the mappings in  unfilteredwhose values
 satisfy a predicate. | 
| static <K,V> NavigableMap<K,V> | Maps. filterValues(NavigableMap<K,V> unfiltered,
                        Predicate<? super V> valuePredicate)Returns a navigable map containing the mappings in  unfilteredwhose
 values satisfy a predicate. | 
| static <K,V> SetMultimap<K,V> | Multimaps. filterValues(SetMultimap<K,V> unfiltered,
                        Predicate<? super V> valuePredicate)Returns a multimap containing the mappings in  unfilteredwhose values
 satisfy a predicate. | 
| static <K,V> SortedMap<K,V> | Maps. filterValues(SortedMap<K,V> unfiltered,
                        Predicate<? super V> valuePredicate)Returns a sorted map containing the mappings in  unfilteredwhose
 values satisfy a predicate. | 
| static <T> T | Iterables. find(Iterable<? extends T> iterable,
        Predicate<? super T> predicate,
        T defaultValue)Returns the first element in  iterablethat satisfies the given
 predicate, ordefaultValueif none found. | 
| static <T> T | Iterables. find(Iterable<T> iterable,
        Predicate<? super T> predicate)Returns the first element in  iterablethat satisfies the given
 predicate; use this method only when such an element is known to exist. | 
| static <T> T | Iterators. find(Iterator<? extends T> iterator,
        Predicate<? super T> predicate,
        T defaultValue)Returns the first element in  iteratorthat satisfies the given
 predicate. | 
| static <T> T | Iterators. find(Iterator<T> iterator,
        Predicate<? super T> predicate)Returns the first element in  iteratorthat satisfies the given
 predicate; use this method only when such an element is known to exist. | 
| Optional<E> | FluentIterable. firstMatch(Predicate<? super E> predicate)Returns an  Optionalcontaining the first element in this fluent iterable that
 satisfies the given predicate, if such an element exists. | 
| static <T> int | 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 <T> int | 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 <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. | 
| static <T> Optional<T> | Iterables. tryFind(Iterable<T> iterable,
              Predicate<? super T> predicate)Returns an  Optionalcontaining the first element initerablethat satisfies the given predicate, if such an element exists. | 
| static <T> Optional<T> | Iterators. tryFind(Iterator<T> iterator,
              Predicate<? super T> predicate)Returns an  Optionalcontaining the first element initeratorthat satisfies the given predicate, if such an element exists. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BloomFilter<T>A Bloom filter for instances of  T. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Predicate<File> | Files. isDirectory()Returns a predicate that returns the result of  File.isDirectory()on input files. | 
| static Predicate<File> | Files. isFile()Returns a predicate that returns the result of  File.isFile()on input files. | 
Copyright © 2010-2015. All Rights Reserved.