textbender.g.util
Interface MultiMap<K,V>

All Known Implementing Classes:
MultiMap.UnmodifiableMultiMap, MultiMapRM, MultiMapW

public interface MultiMap<K,V>

A map that permits duplicate keys (multiple values per key).


Nested Class Summary
static class MultiMap.U
          Multi-map utilities.
static class MultiMap.UnmodifiableMultiMap<K,V>
          A multi-map that wraps an underlying multi-map to make it unmodifiable.
 
Method Summary
 Object get(Object key)
          Returns the values for the specified key.
 void put(K key, V value)
          Adds a value for the specified key.
 

Method Detail

get

Object get(Object key)
Returns the values for the specified key. If there are multiple values, they are returned in put-order.

Returns:
either an array Object[] (multiple values); a non-array Object (single value); or null (no value).

put

void put(K key,
         V value)
Adds a value for the specified key.