public class TTreeMap<K,V> extends TAbstractMap<K,V> implements TCloneable, TSerializable, TNavigableMap<K,V>
TAbstractMap.SimpleEntry<K,V>, TAbstractMap.SimpleImmutableEntry<K,V>
TMap.Entry<K1,V1>
Constructor and Description |
---|
TTreeMap() |
TTreeMap(TComparator<? super K> comparator) |
TTreeMap(TMap<? extends K,? extends V> m) |
TTreeMap(TSortedMap<K,? extends V> m) |
containsValue, equals, hashCode, keySet, putAll, values
equals0, finalize, getClass0, notify0, notifyAll0, toString, wait0, wait0, waitImpl
compute, computeIfAbsent, computeIfPresent, containsValue, getOrDefault, keySet, merge, putAll, putIfAbsent, replace, replace, values
public TTreeMap()
public TTreeMap(TComparator<? super K> comparator)
public TTreeMap(TSortedMap<K,? extends V> m)
public void clear()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface TMap<K,V>
containsKey
in class TAbstractMap<K,V>
public TSet<TMap.Entry<K,V>> entrySet()
public TComparator<? super K> comparator()
comparator
in interface TSortedMap<K,V>
public TSortedMap<K,V> subMap(K fromKey, K toKey)
subMap
in interface TSortedMap<K,V>
public TNavigableMap<K,V> headMap(K toKey)
headMap
in interface TSortedMap<K,V>
public TNavigableMap<K,V> tailMap(K fromKey)
tailMap
in interface TSortedMap<K,V>
public K firstKey()
firstKey
in interface TSortedMap<K,V>
public K lastKey()
lastKey
in interface TSortedMap<K,V>
public TMap.Entry<K,V> lowerEntry(K key)
lowerEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> floorEntry(K key)
floorEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> ceilingEntry(K key)
ceilingEntry
in interface TNavigableMap<K,V>
public K ceilingKey(K key)
ceilingKey
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> higherEntry(K key)
higherEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> firstEntry()
firstEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> lastEntry()
lastEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> pollFirstEntry()
pollFirstEntry
in interface TNavigableMap<K,V>
public TMap.Entry<K,V> pollLastEntry()
pollLastEntry
in interface TNavigableMap<K,V>
public TNavigableMap<K,V> descendingMap()
descendingMap
in interface TNavigableMap<K,V>
public TNavigableSet<K> navigableKeySet()
navigableKeySet
in interface TNavigableMap<K,V>
public TNavigableSet<K> descendingKeySet()
descendingKeySet
in interface TNavigableMap<K,V>
public TNavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
subMap
in interface TNavigableMap<K,V>
public TNavigableMap<K,V> headMap(K toKey, boolean inclusive)
headMap
in interface TNavigableMap<K,V>
public TNavigableMap<K,V> tailMap(K fromKey, boolean inclusive)
tailMap
in interface TNavigableMap<K,V>
public int size()
public Object clone()
clone
in class TAbstractMap<K,V>
Copyright © 2019. All rights reserved.