public static class NullAllowingImmutableMap.Builder<K,V> extends Object
| Constructor and Description |
|---|
Builder(int expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
build() |
NullAllowingImmutableMap.Builder<K,V> |
put(K key,
V value)
Duplicate keys are not allowed, and will cause
build() to fail. |
NullAllowingImmutableMap.Builder<K,V> |
putAll(Map<? extends K,? extends V> newEntries) |
Copyright © 2017–2020. All rights reserved.