|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.util.NodeMapAdapter
This class is an abstract empty implementation of the NodeMap interface. Subclasses
Constructor Summary | |
NodeMapAdapter()
|
Method Summary | |
Object |
get(Object key)
Returns the value bound to the given node. |
boolean |
getBool(Object key)
Returns the boolean value bound to the given node. |
double |
getDouble(Object key)
Returns the double value bound to the given node. |
int |
getInt(Object key)
Returns the integer value bound to the given node. |
void |
set(Object key,
Object value)
Associates the given value to with the given node. |
void |
setBool(Object key,
boolean value)
Associates the given boolean value to with the given node. |
void |
setDouble(Object key,
double value)
Associates the given double value to with the given node. |
void |
setInt(Object key,
int value)
Associates the given integer value to with the given node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeMapAdapter()
Method Detail |
public void set(Object key, Object value)
set
in interface NodeMap
public Object get(Object key)
get
in interface NodeMap
key
-
null
public void setBool(Object key, boolean value)
setBool
in interface NodeMap
public boolean getBool(Object key)
Precondition: The value must have been associated to the given node by a call to setBool.
getBool
in interface NodeMap
key
-
false
public void setDouble(Object key, double value)
setDouble
in interface NodeMap
public double getDouble(Object key)
Precondition: The value must have been associated to the given node by a call to setDouble.
getDouble
in interface NodeMap
0.0d
public void setInt(Object key, int value)
setInt
in interface NodeMap
public int getInt(Object key)
Precondition: The value must have been associated to the given node by a call to setInt.
getInt
in interface NodeMap
0
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |