Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableBiMap.Builder<K,V>
A builder for creating immutable bimap instances, especially
public
static final bimaps ("constant bimaps"). |
static class |
ImmutableSortedMap.Builder<K,V>
A builder for creating immutable sorted map instances, especially
public static final maps ("constant maps"). |
Modifier and Type | Method and Description |
---|---|
static <K,V> ImmutableMap.Builder<K,V> |
ImmutableMap.builder()
Returns a new builder.
|
ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.put(K key,
V value)
Associates
key with value in the built map. |
ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.put(Map.Entry<? extends K,? extends V> entry)
Adds the given
entry to the map, making it immutable if
necessary. |
ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.putAll(Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built map.
|
Copyright © 2010-2014. All Rights Reserved.