Uses of Class
com.google.common.collect.ImmutableSortedMap

Packages that use ImmutableSortedMap
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
  • Uses of ImmutableSortedMap in com.google.common.collect

    Modifier and Type
    Method
    Description
    ImmutableSortedMap.Builder.build()
    Returns a newly-created immutable sorted map.
    ImmutableSortedMap.Builder.buildKeepingLast()
    Deprecated.
    This method is not currently implemented, and may never be.
    ImmutableSortedMap.Builder.buildOrThrow()
    Returns a newly-created immutable sorted map, or throws an exception if any two keys are equal.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)
    Returns an immutable map containing the given entries, with keys sorted by their natural ordering.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries, Comparator<? super K> comparator)
    Returns an immutable map containing the given entries, with keys sorted by the provided comparator.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.copyOf(Map<? extends K,? extends V> map)
    Returns an immutable map containing the same entries as map, sorted by the natural ordering of the keys.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.copyOf(Map<? extends K,? extends V> map, Comparator<? super K> comparator)
    Returns an immutable map containing the same entries as map, with keys sorted by the provided comparator.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.copyOfSorted(SortedMap<K,? extends V> map)
    Returns an immutable map containing the same entries as the provided sorted map, with the same ordering.
    ImmutableSortedMap.descendingMap()
     
    ImmutableSortedMap.headMap(K toKey)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys are less than toKey.
    ImmutableSortedMap.headMap(K toKey, boolean inclusive)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys are less than (or equal to, if inclusive) toKey.
    static <K, V> ImmutableSortedMap<K,V>
    ImmutableSortedMap.of()
    Returns the empty sorted map.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.of(K k1, V v1)
    Returns an immutable map containing a single entry.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.of(K k1, V v1, K k2, V v2)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.of(K k1, V v1, K k2, V v2, K k3, V v3)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.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)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.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)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.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 k8, V v8)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.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 k8, V v8, K k9, V v9)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    static <K extends Comparable<? super K>, V>
    ImmutableSortedMap<K,V>
    ImmutableSortedMap.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 k8, V v8, K k9, V v9, K k10, V v10)
    Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
    ImmutableSortedMap.subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys ranges from fromKey to toKey, inclusive or exclusive as indicated by the boolean flags.
    ImmutableSortedMap.subMap(K fromKey, K toKey)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys ranges from fromKey, inclusive, to toKey, exclusive.
    ImmutableSortedMap.tailMap(K fromKey)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys are greater than or equals to fromKey.
    ImmutableSortedMap.tailMap(K fromKey, boolean inclusive)
    This method returns a ImmutableSortedMap, consisting of the entries whose keys are greater than (or equal to, if inclusive) fromKey.
    Methods in com.google.common.collect that return types with arguments of type ImmutableSortedMap
    Modifier and Type
    Method
    Description
    static <T extends @Nullable Object, K, V>
    Collector<T,?,ImmutableSortedMap<K,V>>
    ImmutableSortedMap.toImmutableSortedMap(Comparator<? super K> comparator, Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction)
    Returns a Collector that accumulates elements into an ImmutableSortedMap whose keys and values are the result of applying the provided mapping functions to the input elements.
    static <T extends @Nullable Object, K, V>
    Collector<T,?,ImmutableSortedMap<K,V>>
    ImmutableSortedMap.toImmutableSortedMap(Comparator<? super K> comparator, Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction, BinaryOperator<V> mergeFunction)
    Returns a Collector that accumulates elements into an ImmutableSortedMap whose keys and values are the result of applying the provided mapping functions to the input elements.