| 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 |
ImmutableSortedMap.naturalOrder()
Returns a builder that creates immutable sorted maps whose keys are ordered by their natural ordering.
|
static <K |
ImmutableSortedMap.orderedBy(Comparator
Returns a builder that creates immutable sorted maps with an explicit comparator.
|
ImmutableSortedMap |
ImmutableSortedMap.Builder.put(K key, V value)
Associates
key with
value in the built map.
|
ImmutableSortedMap |
ImmutableSortedMap.Builder.put(Map
Adds the given
entry to the map, making it immutable if necessary.
|
ImmutableSortedMap |
ImmutableSortedMap.Builder.putAll(Map
Associates all of the given map's keys and values in the built map.
|
static <K extends Comparable |
ImmutableSortedMap.reverseOrder()
Returns a builder that creates immutable sorted maps whose keys are ordered by the reverse of their natural ordering.
|