K - the key typeV - the value typepublic class ImmutableNavigableMap<K,V> extends ImmutableSortedMap<K,V> implements NavigableMap<K,V>
ImmutableMap.Builder<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
Map.Entry<K,V> |
ceilingEntry(K key) |
K |
ceilingKey(K key) |
static <K,V> ImmutableNavigableMap<K,V> |
copyOf(SortedMap<? extends K,? extends V> sortedMap) |
NavigableSet<K> |
descendingKeySet()
Descending key set.
|
NavigableMap<K,V> |
descendingMap() |
static <K,V> ImmutableNavigableMap<K,V> |
empty() |
Map.Entry<K,V> |
firstEntry() |
Map.Entry<K,V> |
floorEntry(K key) |
K |
floorKey(K key) |
NavigableMap<K,V> |
headMap(K toKey,
boolean inclusive) |
Map.Entry<K,V> |
higherEntry(K key) |
K |
higherKey(K key) |
Map.Entry<K,V> |
lastEntry() |
Map.Entry<K,V> |
lowerEntry(K key) |
K |
lowerKey(K key) |
NavigableSet<K> |
navigableKeySet()
Navigable key set.
|
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5,
K k6,
V v6) |
static <K extends Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5,
K k6,
V v6,
K k7,
V v7) |
static <K,V> ImmutableNavigableMap<K,V> |
of(NavigableMap<? extends K,? extends V> navigableMap) |
static <K,V> ImmutableSortedMap<K,V> |
of(SortedMap<? extends K,? extends V> sortedMap)
Deprecated.
throws
UnsupportedOperationException |
Map.Entry<K,V> |
pollFirstEntry()
Poll first entry.
|
Map.Entry<K,V> |
pollLastEntry()
Poll last entry.
|
NavigableMap<K,V> |
subMap(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive) |
NavigableMap<K,V> |
tailMap(K fromKey,
boolean inclusive) |
comparator, copyOf, firstKey, headMap, lastKey, of, subMap, tailMapbuilder, builder, clear, containsKey, containsValue, entrySet, get, getOrDefault, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringheadMap, subMap, tailMapcomparator, entrySet, firstKey, keySet, lastKey, valuesclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic static <K,V> ImmutableNavigableMap<K,V> empty()
K - the key typeV - the value typepublic static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1)
K - the key typeV - the value typek - v - k1 - v1 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - k6 - v6 - public static <K extends Comparable<? super K>,V> ImmutableNavigableMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - k6 - v6 - k7 - v7 - public static <K,V> ImmutableNavigableMap<K,V> of(NavigableMap<? extends K,? extends V> navigableMap)
K - the key typeV - the value typenavigableMap - the elements in this map are shared by the returned ImmutableNavigableMap.public static <K,V> ImmutableNavigableMap<K,V> copyOf(SortedMap<? extends K,? extends V> sortedMap)
K - the key typeV - the value typesortedMap - @Deprecated public static <K,V> ImmutableSortedMap<K,V> of(SortedMap<? extends K,? extends V> sortedMap) throws UnsupportedOperationException
UnsupportedOperationExceptionK - the key typeV - the value typesortedMap - UnsupportedOperationExceptionpublic Map.Entry<K,V> lowerEntry(K key)
lowerEntry in interface NavigableMap<K,V>key - public K lowerKey(K key)
lowerKey in interface NavigableMap<K,V>key - public Map.Entry<K,V> floorEntry(K key)
floorEntry in interface NavigableMap<K,V>key - public K floorKey(K key)
floorKey in interface NavigableMap<K,V>key - public Map.Entry<K,V> ceilingEntry(K key)
ceilingEntry in interface NavigableMap<K,V>key - public K ceilingKey(K key)
ceilingKey in interface NavigableMap<K,V>key - public Map.Entry<K,V> higherEntry(K key)
higherEntry in interface NavigableMap<K,V>key - public K higherKey(K key)
higherKey in interface NavigableMap<K,V>key - public Map.Entry<K,V> firstEntry()
firstEntry 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> descendingMap()
descendingMap in interface NavigableMap<K,V>public NavigableSet<K> navigableKeySet()
navigableKeySet in interface NavigableMap<K,V>public NavigableSet<K> descendingKeySet()
descendingKeySet in interface NavigableMap<K,V>public NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
subMap in interface NavigableMap<K,V>fromKey - fromInclusive - toKey - toInclusive - public NavigableMap<K,V> headMap(K toKey, boolean inclusive)
headMap in interface NavigableMap<K,V>toKey - inclusive - public NavigableMap<K,V> tailMap(K fromKey, boolean inclusive)
tailMap in interface NavigableMap<K,V>fromKey - inclusive - Copyright © 2021. All rights reserved.