public static final class ImmutableValueMap.Builder extends Object
ImmutableValueMap.| Constructor and Description |
|---|
ImmutableValueMap.Builder() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableValueMap |
build()
Returns a newly-created immutable map.
|
ImmutableValueMap.Builder |
put(Map.Entry<String,Object> entry)
Adds the given
entry to the map, making it immutable if
necessary. |
ImmutableValueMap.Builder |
put(String key,
Object value)
Associates
key with value in the built map. |
ImmutableValueMap.Builder |
putAll(Map<String,Object> value)
Associates all of the given map's keys and values in the built map.
|
public ImmutableValueMap.Builder put(String key, Object value)
key with value in the built map. Duplicate
keys are not allowed, and will cause build() to fail.public ImmutableValueMap.Builder put(Map.Entry<String,Object> entry)
entry to the map, making it immutable if
necessary. Duplicate keys are not allowed, and will cause build() to fail.public ImmutableValueMap.Builder putAll(Map<String,Object> value)
build() to fail.NullPointerException - if any key or value in map is nullpublic ImmutableValueMap build()
IllegalArgumentException - if duplicate keys were addedCopyright © 2014 wcm.io. All rights reserved.