public class

MultiMap

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.collect.MultiMap<K, V>

Class Overview

A multi-map of key-values, whose insertion order for the values of a given key is maintained. This class is serialializable. Null key is allowed; null values are allowed.

Note: this class does not implement the Map interface, but attempts to follow its guidelines and contracts the best it can. One notable exception is that this class does not override hashCode/equals.

Summary

Public Constructors
MultiMap()
Public Methods
void clear()
boolean containsKey(K key)
boolean containsValue(V value)
List<V> get(K key)
List<V> getSafe(K key)
boolean isEmpty()
Set<K> keySet()
int keySize()
int put(K key, V value)
void putAll(Map<? extends K, List<? extends V>> m)
List<V> remove(K key)
V removeValue(K key, V value)
int size()
Get the number of key-value mappings (per Map interface).
Collection<V> values()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MultiMap ()

Public Methods

public void clear ()

public boolean containsKey (K key)

public boolean containsValue (V value)

public List<V> get (K key)

public List<V> getSafe (K key)

public boolean isEmpty ()

public Set<K> keySet ()

public int keySize ()

public int put (K key, V value)

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

public List<V> remove (K key)

public V removeValue (K key, V value)

public int size ()

Get the number of key-value mappings (per Map interface). That is, the number of values.

public Collection<V> values ()