util
Interface Builders.MapBuilder<K,V,C extends Map<?,?>>
- Type Parameters:
K
- The type of the keys.V
- The type of the values.C
- The type of the map.
- All Superinterfaces:
- Builders.Builder<C>
- All Known Subinterfaces:
- Builders.MultiMapBuilder<K,V,C>
- Enclosing class:
- Builders
public static interface Builders.MapBuilder<K,V,C extends Map<?,?>>
- extends Builders.Builder<C>
The return type of Builders.buildMap(C)
.
- See Also:
Builders.buildMap(C)
put
Builders.MapBuilder<K,V,C> put(K key,
V value)
- Parameters:
key
- The key for the value.value
- The value to add to the map.
- Returns:
this
, so that calls may be chained.
putForKeys
Builders.MapBuilder<K,V,C> putForKeys(V value,
K... keys)
- Add many entries with the same value.
NOTE: The value must come first, since there are
variably many key arguments and varargs must come last.
- Parameters:
value
- The value to add to the map.keys
- The keys for the value.
- Returns:
this
, so that calls may be chained.