|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.containers.ArrayNodeMap<Val>
public class ArrayNodeMap<Val>
A node map which uses a simple array to store the values. Requires nodes which integer indices.
| Constructor Summary | |
|---|---|
ArrayNodeMap()
constructor |
|
| Method Summary | |
|---|---|
void |
clear()
remove all elements from the data structure. |
Val |
get(Node v)
Get the value of a node |
void |
init(Graph g)
Has to be invoked before the data structure can be used. |
void |
init(Graph g,
Val initVal)
Has to be invoked before the data structure can be used. |
Val |
put(Node v,
Val newVal)
Set the value of a node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayNodeMap()
| Method Detail |
|---|
public void init(Graph g)
Initializable
init in interface Initializableg - the graph for which the data structure shall be defined.
public void init(Graph g,
Val initVal)
InitializableWithDefaultValue
init in interface InitializableWithDefaultValue<Val>g - the graph for which the data structure shall be defined.initVal - the default value with which the data structure
shall be initializedpublic void clear()
Clearable
clear in interface Clearable
public Val put(Node v,
Val newVal)
NodeMap
put in interface NodeMap<Val>v - the node for which the value shall be setnewVal - the new value of the node
public Val get(Node v)
FixedNodeMap
get in interface FixedNodeMap<Val>v - the node for which the value shall be retrieved
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||