|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.containers.MapAsEdgeMap<Val>
public class MapAsEdgeMap<Val>
A edge map which is based on a standard java.util.Map
Constructor Summary | |
---|---|
MapAsEdgeMap()
Constructor. |
|
MapAsEdgeMap(Map<Edge,Val> jMap)
Constructor. |
Method Summary | |
---|---|
Val |
get(Edge e)
Get the value of an edge |
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(Edge e,
Val newVal)
Set the value of an edge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapAsEdgeMap()
public MapAsEdgeMap(Map<Edge,Val> jMap)
jMap
- the java.util.Map to be wrappedMethod Detail |
---|
public void init(Graph g)
EdgeMap
init
in interface EdgeMap<Val>
init
in interface Initializable
g
- the graph for which the EdgeMap 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 Val put(Edge e, Val newVal)
EdgeMap
put
in interface EdgeMap<Val>
e
- the edge for which the value shall be setnewVal
- the new value of the edge
public Val get(Edge e)
FixedEdgeMap
get
in interface FixedEdgeMap<Val>
e
- the edge for which the value shall be retrieved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |