org.jboss.portal.common.util
Class SetMap

java.lang.Object
  extended by org.jboss.portal.common.util.SetMap

public class SetMap
extends java.lang.Object

A map of set. This object does not handle synchronization and use HashMap and HashSet as underlying data structures;


Constructor Summary
SetMap()
           
 
Method Summary
 void add(java.lang.String name, java.lang.Object o)
          Add an object in the set keyed under the name.
 boolean contains(java.lang.String name, java.lang.Object o)
          Return true if the set keyed under the name contains the object o.
 java.util.Iterator iterator(java.lang.String name)
          Return an iterator over the values in the set keyed by the name.
 void remove(java.lang.String name, java.lang.Object o)
          Remove an object in the set keyed under the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetMap

public SetMap()
Method Detail

add

public void add(java.lang.String name,
                java.lang.Object o)
Add an object in the set keyed under the name.


remove

public void remove(java.lang.String name,
                   java.lang.Object o)
Remove an object in the set keyed under the name.


contains

public boolean contains(java.lang.String name,
                        java.lang.Object o)
Return true if the set keyed under the name contains the object o.


iterator

public java.util.Iterator iterator(java.lang.String name)
Return an iterator over the values in the set keyed by the name.