java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<K>
, java.util.Collection<K>
, java.util.NavigableSet<K>
, java.util.Set<K>
, java.util.SortedSet<K>
public class LimitedTreeSet<K>
extends java.util.TreeSet<K>
Constructor | Description |
---|---|
LimitedTreeSet() |
|
LimitedTreeSet(long expireMs,
int max,
boolean caseInsensitive) |
|
LimitedTreeSet(long expireMs,
int max,
boolean caseInsensitive,
boolean grow) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(K key) |
|
boolean |
addAll(java.util.Collection<? extends K> map) |
|
protected void |
check() |
|
void |
clear() |
|
boolean |
contains(java.lang.Object key) |
|
protected boolean |
internalRemove(java.lang.Object key) |
|
java.util.Iterator<K> |
iterator() |
|
boolean |
remove(java.lang.Object key) |
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public LimitedTreeSet(long expireMs, int max, boolean caseInsensitive, boolean grow)
public LimitedTreeSet(long expireMs, int max, boolean caseInsensitive)
public LimitedTreeSet()
public boolean add(K key)
public boolean addAll(java.util.Collection<? extends K> map)
protected void check()
public boolean contains(java.lang.Object key)
public java.util.Iterator<K> iterator()
public void clear()
protected boolean internalRemove(java.lang.Object key)