gov.bnl.star.offline.scheduler.policy
Class ListMap

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.policy.ListMap

public class ListMap
extends java.lang.Object

Version:
$Revision: 1.8 $ $Date: 2004/02/20 20:00:14 $
Author:
Gabriele Carcassi

Constructor Summary
ListMap()
           
 
Method Summary
 boolean add(java.lang.Object key, java.lang.Object value)
          Adds a value in the list associated to key
 boolean addAll(ListMap map)
           
 java.util.Set getKeys()
          Returns all the keys.
 java.util.List getList(java.lang.Object key)
          Get the list of values corresponding to the given key.
 int getNLists()
          Returns the number of keys.
 boolean remove(java.lang.Object key)
           
 boolean remove(java.lang.Object key, java.lang.Object value)
           
 boolean removeValue(java.lang.Object value)
           
 int size()
          Returns the number of values stored in the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListMap

public ListMap()
Method Detail

add

public boolean add(java.lang.Object key,
                   java.lang.Object value)
Adds a value in the list associated to key


addAll

public boolean addAll(ListMap map)

size

public int size()
Returns the number of values stored in the map.


getNLists

public int getNLists()
Returns the number of keys.


getKeys

public java.util.Set getKeys()
Returns all the keys.


getList

public java.util.List getList(java.lang.Object key)
Get the list of values corresponding to the given key.

Parameters:
key - the key
Returns:
a list with all the values

remove

public boolean remove(java.lang.Object key,
                      java.lang.Object value)

remove

public boolean remove(java.lang.Object key)

removeValue

public boolean removeValue(java.lang.Object value)


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.