|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Bag
An interface to define a BAG of objects. The bag can be then associated with other data structures, like Graph Nodes.
| Method Summary | |
|---|---|
boolean |
add(Object key,
Object value)
Adds an object to the underlying bag corresponding to a particular key. |
boolean |
containsKey(Object key)
Returns true if the namespace contains a mapping for the specified key. |
Object |
get(Object key)
Returns an objects corresponding to the key passed. |
| Method Detail |
|---|
Object get(Object key)
key - the key corresponding to which the objects need to be returned.
boolean add(Object key,
Object value)
key - the key with which the value has to be associated.value - the value to be associated with the key.
boolean containsKey(Object key)
key - The key that you want to search for in the bag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||