public final class MoreCollections
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MoreCollections.MapBuilder<K,V>
Builder for streamlined initialization of maps
|
| Constructor and Description |
|---|
MoreCollections() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> MoreCollections.MapBuilder<K,V> |
mapBuilder()
Creates a builder for streamlined initialization of maps
|
public static <K,V> MoreCollections.MapBuilder<K,V> mapBuilder()
Map<String, String> example = MoreCollections.<String, String> mapBuilder()
.put("key", "value")
.build();
K - The type of keys maintained by the resulting mapV - The type of mapped values