@GwtIncompatible public final class SafeTreeMap<K,V> extends Object implements Serializable, NavigableMap<K,V>
TreeMap that aggressively checks to see if keys are mutually comparable.
This implementation passes the navigable map test suites.| Constructor and Description |
|---|
SafeTreeMap() |
SafeTreeMap(Comparator<? super K> comparator) |
SafeTreeMap(Map<? extends K,? extends V> map) |
SafeTreeMap(SortedMap<K,? extends V> map) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic SafeTreeMap()
public SafeTreeMap(Comparator<? super K> comparator)
public SafeTreeMap(Map<? extends K,? extends V> map)
public SafeTreeMap(SortedMap<K,? extends V> map)
public Map.Entry<K,V> ceilingEntry(K key)
ceilingEntry in interface NavigableMap<K,V>public K ceilingKey(K key)
ceilingKey in interface NavigableMap<K,V>public Comparator<? super K> comparator()
comparator in interface SortedMap<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public NavigableSet<K> descendingKeySet()
descendingKeySet in interface NavigableMap<K,V>public NavigableMap<K,V> descendingMap()
descendingMap in interface NavigableMap<K,V>public Map.Entry<K,V> firstEntry()
firstEntry in interface NavigableMap<K,V>public Map.Entry<K,V> floorEntry(K key)
floorEntry in interface NavigableMap<K,V>public NavigableMap<K,V> headMap(K toKey, boolean inclusive)
headMap in interface NavigableMap<K,V>public Map.Entry<K,V> higherEntry(K key)
higherEntry in interface NavigableMap<K,V>public NavigableSet<K> keySet()
public Map.Entry<K,V> lowerEntry(K key)
lowerEntry in interface NavigableMap<K,V>public NavigableSet<K> navigableKeySet()
navigableKeySet in interface NavigableMap<K,V>public Map.Entry<K,V> pollFirstEntry()
pollFirstEntry in interface NavigableMap<K,V>public Map.Entry<K,V> pollLastEntry()
pollLastEntry in interface NavigableMap<K,V>public NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
subMap in interface NavigableMap<K,V>public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive)
tailMap in interface NavigableMap<K,V>public Collection<V> values()
public int hashCode()
Copyright © 2010–2019. All rights reserved.