|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.util.MultiMap
Implementation of a MultiMap- a map that can hold multiple values under each key.
Not Threadsafe- use external sychronization
Constructor Summary | |
MultiMap(int aInitialCapacity,
int aMultiExpectancy)
Creates a new instance of MultiMap |
Method Summary | |
void |
clear()
remove all entriues from the map |
List |
get(Object aKey)
retrieve all values for a given key |
Iterator |
keyIterator()
return an iterator over all keys |
void |
put(Object aKey,
Object aValue)
put a value into the map with the key, no existing values will be displaced |
List |
remove(Object aKey)
remove all values for the given key |
boolean |
remove(Object aKey,
Object aValue)
remove a given value index under a given key |
int |
size()
return the number of entries in the map |
Iterator |
valueIterator()
return an iterator over all values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiMap(int aInitialCapacity, int aMultiExpectancy)
aInitialCapacity
- the size of the hash map used at the first levelaMultiExpectancy
- how many values we expect per keyMethod Detail |
public void put(Object aKey, Object aValue)
public List get(Object aKey)
public List remove(Object aKey)
public boolean remove(Object aKey, Object aValue)
public int size()
public void clear()
public Iterator valueIterator()
public Iterator keyIterator()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |