public class EvictingSet<T>
extends java.util.HashSet<T>
Constructor and Description |
---|
EvictingSet(java.util.Collection<? extends T> c,
int maxSize) |
EvictingSet(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() |
clear, clone, contains, isEmpty, iterator, remove, size, spliterator
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public EvictingSet(int maxSize)
public EvictingSet(java.util.Collection<? extends T> c, int maxSize)