K - the key typeV - the value typepublic class ImmutableSortedMap<K,V> extends ImmutableMap<K,V> implements SortedMap<K,V>
ImmutableMap.Builder<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
Comparator<? super K> |
comparator() |
static <K,V> ImmutableMap<K,V> |
copyOf(Map<? extends K,? extends V> map)
Deprecated.
throws
UnsupportedOperationException |
static <K,V> ImmutableSortedMap<K,V> |
copyOf(SortedMap<? extends K,? extends V> sortedMap) |
static <K,V> ImmutableSortedMap<K,V> |
empty() |
K |
firstKey() |
SortedMap<K,V> |
headMap(K toKey) |
K |
lastKey() |
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> ImmutableMap<K,V> |
of(Map<? extends K,? extends V> map)
Deprecated.
throws
UnsupportedOperationException |
static <K,V> ImmutableSortedMap<K,V> |
of(SortedMap<? extends K,? extends V> sortedMap) |
SortedMap<K,V> |
subMap(K fromKey,
K toKey) |
SortedMap<K,V> |
tailMap(K fromKey) |
builder, builder, clear, containsKey, containsValue, entrySet, get, getOrDefault, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic static <K,V> ImmutableSortedMap<K,V> empty()
K - the key typeV - the value typepublic static <K extends Comparable<? super K>,V> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<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> ImmutableSortedMap<K,V> of(SortedMap<? extends K,? extends V> sortedMap)
K - the key typeV - the value typesortedMap - the elements in this map are shared by the returned ImmutableSortedMap.public static <K,V> ImmutableSortedMap<K,V> copyOf(SortedMap<? extends K,? extends V> sortedMap)
K - the key typeV - the value typesortedMap - @Deprecated public static <K,V> ImmutableMap<K,V> of(Map<? extends K,? extends V> map) throws UnsupportedOperationException
UnsupportedOperationExceptionK - the key typeV - the value typemap - UnsupportedOperationException@Deprecated public static <K,V> ImmutableMap<K,V> copyOf(Map<? extends K,? extends V> map) throws UnsupportedOperationException
UnsupportedOperationExceptionK - the key typeV - the value typemap - UnsupportedOperationExceptionpublic Comparator<? super K> comparator()
comparator in interface SortedMap<K,V>Copyright © 2021. All rights reserved.