public interface INodeMap extends IDataProvider, IDataAcceptor, IDataMap
A node map can be considered as a map that allows only nodes as keys. Node keys of a node map must belong to the same graph.
There are data access methods defined for the most common typed values as well.
The node values are initialized with Java(TM) default values (null, 0, 0.0, false) upon initialization.
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object node)
Returns the value bound to the given node.
|
boolean |
getBool(Object key)
Returns the boolean value bound to the given node.
|
double |
getDouble(Object node)
Returns the double value bound to the given node.
|
int |
getInt(Object node)
Returns the integer value bound to the given node.
|
void |
set(Object node,
Object value)
Associates the given value to the given node.
|
void |
setBool(Object node,
boolean value)
Associates the given boolean value to the given node.
|
void |
setDouble(Object node,
double value)
Associates the given double value to the given node.
|
void |
setInt(Object node,
int value)
Associates the given integer value to the given node.
|
Object get(Object node)
get in interface IDataProviderboolean getBool(Object key)
getBool in interface IDataProvidersetBool.double getDouble(Object node)
getDouble in interface IDataProvidersetDouble.int getInt(Object node)
getInt in interface IDataProvidersetInt.void set(Object node, Object value)
set in interface IDataAcceptorvoid setBool(Object node, boolean value)
setBool in interface IDataAcceptorvoid setDouble(Object node, double value)
setDouble in interface IDataAcceptorvoid setInt(Object node, int value)
setInt in interface IDataAcceptor