static <T extends @Nullable java.lang.Object> boolean |
Iterables.all(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Returns true if every element in iterable satisfies the predicate.
|
static <T extends @Nullable java.lang.Object> boolean |
Iterators.all(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns true if every element returned by iterator satisfies the given
predicate.
|
boolean |
FluentIterable.allMatch(Predicate<? super E> predicate) |
Returns true if every element in this fluent iterable satisfies the predicate.
|
static <T extends @Nullable java.lang.Object> boolean |
Iterables.any(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Returns true if any element in iterable satisfies the predicate.
|
static <T extends @Nullable java.lang.Object> boolean |
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.
|
boolean |
FluentIterable.anyMatch(Predicate<? super E> predicate) |
Returns true if any element in this fluent iterable satisfies the predicate.
|
static <E extends @Nullable java.lang.Object> java.util.Collection<E> |
Collections2.filter(java.util.Collection<E> unfiltered,
Predicate<? super E> predicate) |
Returns the elements of 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 <T extends @Nullable java.lang.Object> java.lang.Iterable<T> |
Iterables.filter(java.lang.Iterable<T> unfiltered,
Predicate<? super T> retainIfTrue) |
Returns a view of unfiltered containing all elements that satisfy the input predicate
retainIfTrue .
|
static <T extends @Nullable java.lang.Object> UnmodifiableIterator<T> |
Iterators.filter(java.util.Iterator<T> unfiltered,
Predicate<? super T> retainIfTrue) |
Returns a view of unfiltered containing all elements that satisfy the input predicate
retainIfTrue .
|
static <E extends @Nullable java.lang.Object> Multiset<E> |
Multisets.filter(Multiset<E> unfiltered,
Predicate<? super E> predicate) |
Returns a view of the elements of unfiltered that satisfy a predicate.
|
static <E extends @Nullable java.lang.Object> java.util.NavigableSet<E> |
Sets.filter(java.util.NavigableSet<E> unfiltered,
Predicate<? super E> predicate) |
Returns the elements of a NavigableSet , unfiltered , that satisfy a predicate.
|
static <E extends @Nullable java.lang.Object> java.util.Set<E> |
Sets.filter(java.util.Set<E> unfiltered,
Predicate<? super E> predicate) |
Returns the elements of unfiltered that satisfy a predicate.
|
static <E extends @Nullable java.lang.Object> java.util.SortedSet<E> |
Sets.filter(java.util.SortedSet<E> unfiltered,
Predicate<? super E> predicate) |
Returns the elements of a SortedSet , unfiltered , that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> BiMap<K,V> |
Maps.filterEntries(BiMap<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a bimap containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.Map<K,V> |
Maps.filterEntries(java.util.Map<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a map containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.NavigableMap<K,V> |
Maps.filterEntries(java.util.NavigableMap<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a sorted map containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.SortedMap<K,V> |
Maps.filterEntries(java.util.SortedMap<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a sorted map containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> Multimap<K,V> |
Multimaps.filterEntries(Multimap<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a multimap containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> SetMultimap<K,V> |
Multimaps.filterEntries(SetMultimap<K,V> unfiltered,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Returns a multimap containing the mappings in unfiltered that satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> BiMap<K,V> |
Maps.filterKeys(BiMap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a bimap containing the mappings in unfiltered whose keys satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.Map<K,V> |
Maps.filterKeys(java.util.Map<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a map containing the mappings in unfiltered whose keys satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.NavigableMap<K,V> |
Maps.filterKeys(java.util.NavigableMap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a navigable map containing the mappings in unfiltered whose keys satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.SortedMap<K,V> |
Maps.filterKeys(java.util.SortedMap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a sorted map containing the mappings in unfiltered whose keys satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> ListMultimap<K,V> |
Multimaps.filterKeys(ListMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a multimap containing the mappings in unfiltered whose keys satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> Multimap<K,V> |
Multimaps.filterKeys(Multimap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a multimap containing the mappings in unfiltered whose keys satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> SetMultimap<K,V> |
Multimaps.filterKeys(SetMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate) |
Returns a multimap containing the mappings in unfiltered whose keys satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> BiMap<K,V> |
Maps.filterValues(BiMap<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a bimap containing the mappings in unfiltered whose values satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.Map<K,V> |
Maps.filterValues(java.util.Map<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a map containing the mappings in unfiltered whose values satisfy a predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.NavigableMap<K,V> |
Maps.filterValues(java.util.NavigableMap<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a navigable map containing the mappings in unfiltered whose values satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> java.util.SortedMap<K,V> |
Maps.filterValues(java.util.SortedMap<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a sorted map containing the mappings in unfiltered whose values satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> Multimap<K,V> |
Multimaps.filterValues(Multimap<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a multimap containing the mappings in unfiltered whose values satisfy a
predicate.
|
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> SetMultimap<K,V> |
Multimaps.filterValues(SetMultimap<K,V> unfiltered,
Predicate<? super V> valuePredicate) |
Returns a multimap containing the mappings in unfiltered whose values satisfy a
predicate.
|
static <T extends @Nullable java.lang.Object> T |
Iterables.find(java.lang.Iterable<? extends T> iterable,
Predicate<? super T> predicate,
T defaultValue) |
Returns the first element in iterable that satisfies the given predicate, or
defaultValue if none found.
|
static <T extends @Nullable java.lang.Object> T |
Iterables.find(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Returns the first element in iterable that satisfies the given predicate; use this
method only when such an element is known to exist.
|
static <T extends @Nullable java.lang.Object> T |
Iterators.find(java.util.Iterator<? extends T> iterator,
Predicate<? super T> predicate,
T defaultValue) |
Returns the first element in iterator that satisfies the given predicate.
|
static <T extends @Nullable java.lang.Object> T |
Iterators.find(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns the first element in iterator that satisfies the given predicate; use this
method only when such an element is known to exist.
|
Optional<@NonNull E> |
FluentIterable.firstMatch(Predicate<? super E> predicate) |
Returns an Optional containing the first element in this fluent iterable that satisfies
the given predicate, if such an element exists.
|
static <T extends @Nullable java.lang.Object> int |
Iterables.indexOf(java.lang.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 extends @Nullable java.lang.Object> int |
Iterators.indexOf(java.util.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 extends @Nullable java.lang.Object> boolean |
Iterables.removeIf(java.lang.Iterable<T> removeFrom,
Predicate<? super T> predicate) |
Removes, from an iterable, every element that satisfies the provided predicate.
|
static <T extends @Nullable java.lang.Object> boolean |
Iterators.removeIf(java.util.Iterator<T> removeFrom,
Predicate<? super T> predicate) |
Removes every element that satisfies the provided predicate from the iterator.
|
static <T> Optional<T> |
Iterables.tryFind(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Returns an Optional containing the first element in iterable that satisfies the
given predicate, if such an element exists.
|
static <T> Optional<T> |
Iterators.tryFind(java.util.Iterator<T> iterator,
Predicate<? super T> predicate) |
Returns an Optional containing the first element in iterator that satisfies the
given predicate, if such an element exists.
|