Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.schemagen

pack-priv final Class MultiMap<K extends Comparable<K>, V>

extends TreeMap<K extends Comparable<K>, V>
Class Inheritance
Imports
java.util.Map, .TreeMap

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.

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final V
private static final long

Constructor Summary

AccessConstructor and Description
public
MultiMap(V many)

Method Summary

Modifier and TypeMethod and Description
public V
put(K key, V value)

Overrides java.util.TreeMap.put.

Implements java.util.Map.put.

Associates the specified value with the specified key in this map.

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

Overrides java.util.TreeMap.putAll.

Implements java.util.Map.putAll.

Copies all of the mappings from the specified map to this map.

Inherited from java.util.TreeMap:
ceilingEntryceilingKeyclearclonecomparatorcomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValuedescendingKeySetdescendingMapentrySetfirstEntryfirstKeyfloorEntryfloorKeyforEachgetheadMapheadMaphigherEntryhigherKeykeySetlastEntrylastKeylowerEntrylowerKeymergenavigableKeySetpollFirstEntrypollLastEntryputFirstputIfAbsentputLastremovereplacereplacereplaceAllsizesubMapsubMaptailMaptailMapvalues

Field Detail

manyback to summary
private final V many
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.TreeMap.serialVersionUID.

Constructor Detail

MultiMapback to summary
public MultiMap(V many)

Method Detail

putback to summary
public V put(K key, V value)

Overrides java.util.TreeMap.put.

Implements java.util.Map.put.

Doc from java.util.TreeMap.put.

Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.

Annotations
@Override
putAllback to summary
public void putAll(Map<? extends K, ? extends V> map)

Overrides java.util.TreeMap.putAll.

Implements java.util.Map.putAll.

Doc from java.util.TreeMap.putAll.

Copies all of the mappings from the specified map to this map. These mappings replace any mappings that this map had for any of the keys currently in the specified map.

Annotations
@Override