Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
com.google.thirdparty.publicsuffix |
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 | Field and Description |
---|---|
private ImmutableMap.Builder<java.lang.Class<? extends B>,B> |
ImmutableClassToInstanceMap.Builder.mapBuilder |
Modifier and Type | Method and Description |
---|---|
static <K,V> ImmutableMap.Builder<K,V> |
ImmutableMap.builder()
Returns a new builder.
|
static <K,V> ImmutableMap.Builder<K,V> |
ImmutableMap.builderWithExpectedSize(int expectedSize)
Returns a new builder, expecting the specified number of entries to be added.
|
(package private) ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.combine(ImmutableMap.Builder<K,V> other) |
ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.orderEntriesByValue(java.util.Comparator<? super V> valueComparator)
Configures this
Builder to order entries by value according to the specified
comparator. |
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(java.util.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(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds all of the given entries to the built map.
|
ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.putAll(java.util.Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built map.
|
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableBiMap.Builder<K,V> |
ImmutableBiMap.Builder.combine(ImmutableMap.Builder<K,V> builder) |
(package private) ImmutableMap.Builder<K,V> |
ImmutableMap.Builder.combine(ImmutableMap.Builder<K,V> other) |
(package private) ImmutableSortedMap.Builder<K,V> |
ImmutableSortedMap.Builder.combine(ImmutableMap.Builder<K,V> other) |
(package private) java.lang.Object |
ImmutableMap.SerializedForm.createMap(ImmutableMap.Builder<java.lang.Object,java.lang.Object> builder) |
Modifier and Type | Field and Description |
---|---|
private ImmutableMap.Builder<TypeToken<? extends B>,B> |
ImmutableTypeToInstanceMap.Builder.mapBuilder |
Modifier and Type | Method and Description |
---|---|
private static int |
TrieParser.doParseTrieToBuilder(java.util.List<java.lang.CharSequence> stack,
java.lang.CharSequence encoded,
int start,
ImmutableMap.Builder<java.lang.String,PublicSuffixType> builder)
Parses a trie node and returns the number of characters consumed.
|