Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
static <K extends Comparable<?>,V> |
ImmutableSortedMap.naturalOrder()
Returns a builder that creates immutable sorted maps whose keys are
ordered by their natural ordering.
|
static <K,V> ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.orderedBy(Comparator<K> comparator)
Returns a builder that creates immutable sorted maps with an explicit
comparator.
|
ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.orderEntriesByValue(Comparator<? super V> valueComparator)
Deprecated.
Unsupported by ImmutableSortedMap.Builder.
|
ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.put(K key,
V value)
Associates
key with value in the built map. |
ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.put(Map.Entry<? extends K,? extends V> entry)
Adds the given
entry to the map, making it immutable if
necessary. |
ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.putAll(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)
Adds all the given entries to the built map.
|
ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.putAll(Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built map.
|
static <K extends Comparable<?>,V> |
ImmutableSortedMap.reverseOrder()
Returns a builder that creates immutable sorted maps whose keys are
ordered by the reverse of their natural ordering.
|
Copyright © 2010–2017. All rights reserved.