com.artima.cyberspace
Class BasicLinkMap
java.lang.Object
|
+--com.artima.cyberspace.BasicLinkMap
- public class BasicLinkMap
- extends java.lang.Object
- implements net.artima.place.LinkMap
- See Also:
- Serialized Form
Field Summary |
private java.util.Map |
map
|
Constructor Summary |
BasicLinkMap(java.util.Map map)
Construct a BasicLinkMap |
Method Summary |
java.lang.Object |
clone()
|
boolean |
containsKey(java.lang.Object key)
Returns true if this LinkMap contains a mapping for
the specified key. |
boolean |
containsValue(net.artima.place.Link value)
Returns true if this LinkMap maps one or more keys
to the specified value. |
net.artima.place.Link |
get(java.lang.Object key)
Returns the Link value to which this LinkMap maps
the specified Object key. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
java.util.Set |
keySet()
Returns an unmodifiable set view of the keys contained in this map. |
int |
size()
Returns the number of key-value mappings in this map. |
java.util.Collection |
values()
Returns a collection view of the values contained in this LinkMap . |
Methods inherited from class java.lang.Object |
,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
map
private java.util.Map map
BasicLinkMap
public BasicLinkMap(java.util.Map map)
- Construct a
BasicLinkMap
get
public net.artima.place.Link get(java.lang.Object key)
- Returns the
Link
value to which this LinkMap
maps
the specified Object
key.
- Specified by:
- get in interface net.artima.place.LinkMap
containsKey
public boolean containsKey(java.lang.Object key)
- Returns
true
if this LinkMap
contains a mapping for
the specified key.
- Specified by:
- containsKey in interface net.artima.place.LinkMap
containsValue
public boolean containsValue(net.artima.place.Link value)
- Returns
true
if this LinkMap
maps one or more keys
to the specified value.
- Specified by:
- containsValue in interface net.artima.place.LinkMap
isEmpty
public boolean isEmpty()
- Returns
true
if this map contains no key-value mappings.
- Specified by:
- isEmpty in interface net.artima.place.LinkMap
keySet
public java.util.Set keySet()
- Returns an unmodifiable set view of the keys contained in this map.
- Specified by:
- keySet in interface net.artima.place.LinkMap
size
public int size()
- Returns the number of key-value mappings in this map.
- Specified by:
- size in interface net.artima.place.LinkMap
values
public java.util.Collection values()
- Returns a collection view of the values contained in this
LinkMap
.
- Specified by:
- values in interface net.artima.place.LinkMap
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object