public class TypeFilterableList<T> extends AbstractCollection<T>
Modifier and Type | Field and Description |
---|---|
private List<T> |
allElements |
private Map<Class<?>,List<T>> |
elementsByType |
private Class<T> |
elementType |
Constructor and Description |
---|
TypeFilterableList(Class<T> elementType) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
contains(Object o) |
<S> Collection<S> |
getAllOfType(Class<S> type) |
Iterator<T> |
iterator() |
List<T> |
method_29903() |
boolean |
remove(Object o) |
int |
size() |
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public boolean add(T e)
add
in interface Collection<T>
add
in class AbstractCollection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in class AbstractCollection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
contains
in class AbstractCollection<T>
public <S> Collection<S> getAllOfType(Class<S> type)
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>