com.sun.xml.bind.v2.schemagen

Class MultiMap<K,V>

final class MultiMap<K extends Comparable<K>,V> extends TreeMap<K,V>

A special Map that 'conceptually' stores a set of values for each key.

When multiple values are stored, however, this class doesn't let the caller see individual values, and instead it returns a specially designated "MANY" value, which is given as a parameter to the constructor.

Constructor Summary
MultiMap(V many)
Method Summary
Vput(K key, V value)
voidputAll(Map<? extends K,? extends V> map)

Constructor Detail

MultiMap

public MultiMap(V many)

Method Detail

put

V put(K key, V value)

putAll

void putAll(Map<? extends K,? extends V> map)