T
- element type of the underlying collectionpublic class FilteredCollection<T> extends SubclassFilteredCollection<T,T>
Constructor and Description |
---|
FilteredCollection(Collection<? extends T> collection,
Predicate<? super T> predicate)
Constructs a new
FilteredCollection . |
isEmpty, iterator, size
add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public FilteredCollection(Collection<? extends T> collection, Predicate<? super T> predicate)
FilteredCollection
.collection
- The base collection to filterpredicate
- The predicate to use as filter