Top Fields Constructors Methods
org.testng.collections

public abstract Class MultiMap<K, V, C extends Collection<V>>

extends Object
Class Inheritance
Known Direct Subclasses
org.testng.collections.SetMultiMap, org.testng.collections.ListMultiMap
Imports
java.util.Collection, .HashSet, .Map, .Set, java.util.concurrent.atomic.AtomicBoolean

Field Summary

Modifier and TypeField and Description
protected final Map<K, C>

Constructor Summary

AccessConstructor and Description
protected
MultiMap(boolean isSorted)

Method Summary

Modifier and TypeMethod and Description
public boolean
protected abstract C
public Set<Map.Entry<K, C>>
public C
get(K key)

public boolean
public Set<K>
public boolean
put(K key, V method)

public boolean
putAll(K k, Collection<? extends V> values)

public boolean
remove(K key, V value)

public C
removeAll(K key)

public int
size()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Collection<C>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

m_objectsback to summary
protected final Map<K, C> m_objects

Constructor Detail

MultiMapback to summary
protected MultiMap(boolean isSorted)

Method Detail

containsKeyback to summary
public boolean containsKey(K k)
createValueback to summary
protected abstract C createValue()
entrySetback to summary
public Set<Map.Entry<K, C>> entrySet()
getback to summary
public C get(K key)
isEmptyback to summary
public boolean isEmpty()
keySetback to summary
public Set<K> keySet()
putback to summary
public boolean put(K key, V method)
putAllback to summary
public boolean putAll(K k, Collection<? extends V> values)
removeback to summary
public boolean remove(K key, V value)
removeAllback to summary
public C removeAll(K key)
sizeback to summary
public int size()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
valuesback to summary
public Collection<C> values()