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, spliteratorcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic EvictingSet(int maxSize)
public EvictingSet(java.util.Collection<? extends T> c, int maxSize)