public class FilteredList<T>
extends java.util.AbstractSequentialList<T>
List
that provides a filtered view of another List
. All operations are supported except variations
of List.add(E)
.Constructor and Description |
---|
FilteredList(java.util.List<T> list,
java.util.function.Predicate<? super T> predicate) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
static <T> java.util.List<T> |
from(java.util.List<T> list,
java.util.function.Predicate<? super T> predicate) |
java.util.ListIterator<T> |
listIterator(int index) |
int |
size() |
clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static <T> java.util.List<T> from(java.util.List<T> list, java.util.function.Predicate<? super T> predicate)
public java.util.ListIterator<T> listIterator(int index)
public int size()
public boolean add(T t)
public boolean addAll(java.util.Collection<? extends T> c)
public void add(int index, T element)