util
Interface Builders.MultiMapBuilder<K,V,C extends Map<?,?>>

Type Parameters:
K - The type of the keys.
V - The type of the (individual) values.
C - The type of the map.
All Superinterfaces:
Builders.Builder<C>, Builders.MapBuilder<K,V,C>
Enclosing class:
Builders

public static interface Builders.MultiMapBuilder<K,V,C extends Map<?,?>>
extends Builders.MapBuilder<K,V,C>

The return type of Builders.buildMultiMap(C).

See Also:
Builders.buildMultiMap(C)

Method Summary
 Builders.MultiMapBuilder<K,V,C> put(K key, V... values)
           
 Builders.MultiMapBuilder<K,V,C> put(K key, V value)
           
 Builders.MultiMapBuilder<K,V,C> putForKeys(V value, K... keys)
          Add many entries with the same value.
 
Methods inherited from interface util.Builders.Builder
finish
 

Method Detail

put

Builders.MultiMapBuilder<K,V,C> put(K key,
                                    V... values)
Parameters:
key - The key for the values.
values - Zero or more values; they will be put into a list and stored with the key in the map.
Returns:
this, so that calls may be chained.

put

Builders.MultiMapBuilder<K,V,C> put(K key,
                                    V value)
Specified by:
put in interface Builders.MapBuilder<K,V,C extends Map<?,?>>
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.MultiMapBuilder<K,V,C> putForKeys(V value,
                                           K... keys)
Description copied from interface: Builders.MapBuilder
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.

Specified by:
putForKeys in interface Builders.MapBuilder<K,V,C extends Map<?,?>>
Parameters:
value - The value to add to the map.
keys - The keys for the value.
Returns:
this, so that calls may be chained.