public class ConcurrentEvictingList<T>
extends java.util.concurrent.CopyOnWriteArrayList<T>
Constructor and Description |
---|
ConcurrentEvictingList(java.util.Collection<? extends T> c,
int maxSize) |
ConcurrentEvictingList(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, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, toString
public ConcurrentEvictingList(int maxSize)
public ConcurrentEvictingList(java.util.Collection<? extends T> c, int maxSize)