public class OrderLimitMap<K extends Comparable<K>,V extends Comparable<V>> extends TreeMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
OrderLimitMap(int capacity) |
OrderLimitMap(int capacity,
boolean incr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
V |
get(Object key) |
V |
getOrDefault(Object key,
V defaultValue) |
V |
put(K k,
V v) |
Map<K,V> |
topN(int n) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putIfAbsent, removepublic OrderLimitMap(int capacity)
public OrderLimitMap(int capacity,
boolean incr)
public V put(K k, V v)
put in interface Map<K extends Comparable<K>,V extends Comparable<V>>put in class TreeMap<K extends Comparable<K>,V extends Comparable<V>>public V get(Object key)
get in interface Map<K extends Comparable<K>,V extends Comparable<V>>get in class TreeMap<K extends Comparable<K>,V extends Comparable<V>>public boolean containsKey(Object key)
containsKey in interface Map<K extends Comparable<K>,V extends Comparable<V>>containsKey in class TreeMap<K extends Comparable<K>,V extends Comparable<V>>Copyright © 2021. All rights reserved.