juju.reattore.util
Class MapOfLists

java.lang.Object
  |
  +--juju.reattore.util.MapOfLists

public class MapOfLists
extends java.lang.Object

Indexed set of Lists.


Constructor Summary
MapOfLists()
           
 
Method Summary
 void add(java.lang.Object key, java.lang.Object obj)
          Adds a new element to the List identified by 'obj'
 java.util.Set entrySet()
          All of the lists in order created.
 java.util.List get(java.lang.Object key)
          Fetch a list by key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapOfLists

public MapOfLists()
Method Detail

add

public void add(java.lang.Object key,
                java.lang.Object obj)
Adds a new element to the List identified by 'obj'

Parameters:
key - List key
obj - Object to add.

entrySet

public java.util.Set entrySet()
All of the lists in order created.

Returns:
Set of Map.Entry

get

public java.util.List get(java.lang.Object key)
Fetch a list by key.

Parameters:
key - List key
Returns:
The list for the key.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.