edu.uci.ics.jung.graph.decorators
Class MapNumberVertexValue
java.lang.Object
edu.uci.ics.jung.graph.decorators.MapNumberVertexValue
- All Implemented Interfaces:
- NumberVertexValue
public class MapNumberVertexValue
- extends Object
- implements NumberVertexValue
A simple implementation of NumberVertexValue backed by a
Map.
- Author:
- Joshua O'Madadhain
|
Field Summary |
protected Map |
map
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
protected Map map
MapNumberVertexValue
public MapNumberVertexValue()
getNumber
public Number getNumber(ArchetypeVertex v)
- Specified by:
getNumber in interface NumberVertexValue
- Parameters:
v - the vertex to examine
- Returns:
- the Number associated with this vertex
setNumber
public void setNumber(ArchetypeVertex v,
Number n)
- Specified by:
setNumber in interface NumberVertexValue
- Parameters:
v - the vertex whose value we're settingn - the Number to which we're setting the vertex's value