|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.util.SetMap
A map of set. This object does not handle synchronization and use HashMap and HashSet as underlying data structures;
Field Summary | |
protected java.util.Comparator |
comparator
An optional comparator. |
protected java.util.Map |
map
The underlying map. |
Constructor Summary | |
SetMap()
|
|
SetMap(java.util.Comparator comparator)
|
|
SetMap(SetMap other)
|
|
SetMap(SetMap other,
java.util.Comparator comparator)
Copy constructor. |
Method Summary | |
boolean |
contains(java.lang.Object key,
java.lang.Object o)
Return true if the specified set contains the object o. |
java.util.Set |
get(java.lang.Object key)
Return the set specified by the key. |
java.util.Iterator |
iterator(java.lang.Object key)
Return an iterator over the values in the set specified by the key. |
java.util.Set |
keySet()
Return the set of keys. |
void |
put(java.lang.Object key,
java.lang.Object o)
Add an object in the set keyed under the specified key. |
void |
remove(java.lang.Object key)
Remove the entire set of objects specified by the key. |
void |
remove(java.lang.Object key,
java.lang.Object o)
Remove an object in the set keyed under the specified key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map map
protected java.util.Comparator comparator
Constructor Detail |
public SetMap()
public SetMap(SetMap other) throws java.lang.IllegalArgumentException
public SetMap(SetMap other, java.util.Comparator comparator) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the argument is nullpublic SetMap(java.util.Comparator comparator)
Method Detail |
public void put(java.lang.Object key, java.lang.Object o)
public java.util.Set keySet()
public void remove(java.lang.Object key)
public void remove(java.lang.Object key, java.lang.Object o)
public boolean contains(java.lang.Object key, java.lang.Object o)
public java.util.Set get(java.lang.Object key)
public java.util.Iterator iterator(java.lang.Object key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |