public class EvictingList<T>
extends java.util.ArrayList<T>
Constructor and Description |
---|
EvictingList(java.util.Collection<? extends T> c,
int maxSize) |
EvictingList(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
int |
getMaxSize() |
java.util.stream.Stream<T> |
stream() |
add, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public EvictingList(int maxSize)
public EvictingList(java.util.Collection<? extends T> c, int maxSize)