|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a map of links to resources on the network. If a LinkMap
object also
implements ModifiableLinkMap
, the client may add, remove, and alter the LinkItem
s
contained in the LinkMap
. If a LinkMap
object also implements
DynamicLinkMap
, LinkItem
s may be added to or removed from the LinkMap
,
and existing LinkItem
s may be altered, by parties other than the client.
Method Summary | |
boolean |
containsKey(java.lang.Object key)
Returns true if this LinkMap contains a mapping for
the specified key. |
boolean |
containsValue(LinkItem value)
Returns true if this LinkMap maps one or more keys
to the specified value. |
LinkItem |
get(java.lang.Object key)
Returns the LinkItem 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 . |
Method Detail |
public LinkItem get(java.lang.Object key) throws java.rmi.RemoteException
LinkItem
value to which this LinkMap
maps
the specified Object
key.public boolean containsKey(java.lang.Object key) throws java.rmi.RemoteException
true
if this LinkMap
contains a mapping for
the specified key.public boolean containsValue(LinkItem value) throws java.rmi.RemoteException
true
if this LinkMap
maps one or more keys
to the specified value.public boolean isEmpty() throws java.rmi.RemoteException
true
if this map contains no key-value mappings.public java.util.Set keySet() throws java.rmi.RemoteException
LinkItem
keys contained
in the LinkMap
. If changes occur to this LinkMap
after this method returns, which is possible if this object is a DynamicLinkMap
or a ModifiableLinkMap
, those changes will not be reflected in
the returned Collection
. In other words, if an iteration over the returned
Collection
is in progress when this LinkMap
is changed,
those changes will not affect or alter the result of the iteration. The iteration
will continue to work, but will yield a stale snapshot of the LinkMap
.public int size() throws java.rmi.RemoteException
public java.util.Collection values() throws java.rmi.RemoteException
LinkMap
.
The returned collection is a snapshot of the LinkItem
values contained
in the LinkMap
. If changes occur to this LinkMap
after this method returns, which is possible if this object is a DynamicLinkMap
or a ModifiableLinkMap
, those changes will not be reflected in
the returned Collection
. In other words, if an iteration over the returned
Collection
is in progress when this LinkMap
is changed,
those changes will not affect or alter the result of the iteration. The iteration
will continue to work, but will yield a stale snapshot of the LinkMap
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |