public class FilteredCollection<T>
extends java.util.AbstractCollection<T>
Collection that provides a filtered view of another Collection. All operations are supported
except variations of Collection.add(E).| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Collection<T> |
from(java.util.Collection<T> collection,
java.util.function.Predicate<? super T> predicate) |
java.util.Iterator<T> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static <T> java.util.Collection<T> from(java.util.Collection<T> collection,
java.util.function.Predicate<? super T> predicate)
public java.util.Iterator<T> iterator()