public class NumericDecorator extends Decorator
| Constructor and Description |
|---|
NumericDecorator(java.lang.Object key,
UserDataContainer.CopyAction copyAction)
Constructs and initializes the decorator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
getValue(UserDataContainer udc)
Returns the decorated value as Number
|
int |
intValue(UserDataContainer udc)
Retrieves the decorated value for the given graph/vertex/edge as an integer
|
void |
setValue(java.lang.Number value,
UserDataContainer udc)
Sets the value for a given graph/vertex/edge
|
getCopyAction, getKey, hashCode, removeValuepublic NumericDecorator(java.lang.Object key,
UserDataContainer.CopyAction copyAction)
key - copyAction - public int intValue(UserDataContainer udc)
udc - the graph/vertex/edgepublic java.lang.Number getValue(UserDataContainer udc)
udc - the graph/vertex/edgepublic void setValue(java.lang.Number value,
UserDataContainer udc)
value - the value to be storedudc - the graph/vertex/edge being decorated