| org.griphyn.cPlanner.partitioner.graph.Bag
All known Subclasses: org.griphyn.cPlanner.classes.PegasusBag, org.griphyn.cPlanner.partitioner.graph.LabelBag, org.griphyn.cPlanner.selector.site.heft.HeftBag,
Bag | public interface Bag (Code) | | An interface to define a BAG of objects. The bag can be then associated
with other data structures, like Graph Nodes.
author: Karan Vahi version: $Revision: 50 $ |
Method Summary | |
public boolean | add(Object key, Object value) Adds an object to the underlying bag corresponding to a particular key.
Parameters: key - the key with which the value has to be associated. Parameters: value - the value to be associated with the key. | public boolean | containsKey(Object key) Returns true if the namespace contains a mapping for the specified key. | public Object | get(Object key) Returns an objects corresponding to the key passed.
Parameters: key - the key corresponding to which the objects need to be returned. |
add | public boolean add(Object key, Object value)(Code) | | Adds an object to the underlying bag corresponding to a particular key.
Parameters: key - the key with which the value has to be associated. Parameters: value - the value to be associated with the key. boolean indicating if insertion was successful. |
containsKey | public boolean containsKey(Object key)(Code) | | Returns true if the namespace contains a mapping for the specified key.
More formally, returns true if and only if this map contains at a mapping
for a key k such that (key==null ? k==null : key.equals(k)).
(There can be at most one such mapping.)
Parameters: key - The key that you want to search for in the bag. |
get | public Object get(Object key)(Code) | | Returns an objects corresponding to the key passed.
Parameters: key - the key corresponding to which the objects need to be returned. the object that is found corresponding to the key or null. |
|
|