|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.io.LinkMap
A simple named map for key-value-pairs.
Values must be of type LinkInfo
.
Keys may be of any type, with nodes, edges, and labels being the main focus.
Constructor Summary | |
LinkMap()
Constructs an empty, unnamed LinkMap. |
Method Summary | |
void |
clear()
Removes all mappings from this map and deletes its name. |
LinkInfo |
get(Object key)
Gets the LinkInfo mapped to the specified key. |
String |
getMapName()
Returns this map's name. |
void |
put(Object key,
LinkInfo value)
Maps the specified value to the specified key. |
void |
remove(Object key)
Removes the specified key and its associated value from this map. |
void |
setMapName(String mapName)
Specifies this map's name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinkMap()
Method Detail |
public String getMapName()
public void setMapName(String mapName)
mapName
- public LinkInfo get(Object key)
LinkInfo
mapped to the specified key.
key
-
LinkInfo
associated to the key;
or null
if no value has been mapped to the keypublic void put(Object key, LinkInfo value)
key
- value
- public void remove(Object key)
public void clear()
|
© 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 |