|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Represents a modifiable map of links to services on the network.
| Method Summary | |
void |
clear()
Removes all mapping from this LinkMap. |
LinkItem |
put(int keyValue,
LinkItem value)
Convenience method that associates the specified value with the Integer key whose int value equals the
int specified keyValue. |
java.lang.Object |
put(LinkItem value)
Associates the specified value in this LinkMap with a
new unique key selected by this method. |
LinkItem |
put(java.lang.Object key,
LinkItem value)
Associates the specified value with the specified key in this LinkMap. |
void |
putAll(LinkMap map)
Copies all of the mappings from the specified LinkMap to
this LinkMap. |
LinkItem |
remove(java.lang.Object key)
Removes the mapping for this key from this LinkMap if
present. |
LinkItem |
update(java.lang.Object key,
InfoBundle infoBundle)
Associates the specified InfoBundle with the
Link that is associated with the specified key in this
LinkMap. |
| Methods inherited from interface com.artima.place.LinkMap |
containsAllKeys, containsAllLinkItems, containsKey, containsKey, containsLinkItem, get, get, isEmpty, keyIterator, keySetSize, linkItemIterator, size |
| Method Detail |
public void clear()
throws java.rmi.RemoteException
LinkMap.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations
public LinkItem put(java.lang.Object key,
LinkItem value)
throws java.rmi.RemoteException
LinkMap.key - the key with which to associate the specified
LinkItem value in this LinkMap.value - the LinkItem value to associate with the
specified key in this LinkMap.LinkItem with which the key was previously
associated, or null if there was no mapping for the
key.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations
public LinkItem put(int keyValue,
LinkItem value)
throws java.rmi.RemoteException
Integer key whose int value equals the
int specified keyValue.key - the key with which (in Integer form) to
associate the specified LinkItem value in this
LinkMap.value - the LinkItem value to associate with the
specified key in this LinkMap.LinkItem with which the key was previously
associated, or null if there was no mapping for the
key.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations
public java.lang.Object put(LinkItem value)
throws java.rmi.RemoteException
LinkMap with a
new unique key selected by this method.value - the LinkItem value to associate with a
randomly selected new key in this LinkMap.LinkItem was associated.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations
public LinkItem update(java.lang.Object key,
InfoBundle infoBundle)
throws java.rmi.RemoteException
InfoBundle with the
Link that is associated with the specified key in this
LinkMap.key - the key with which to associate the specified
LinkItem value in this LinkMap.value - the LinkItem value to associate with the
specified key in this LinkMap.LinkItem.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligationsNoSuchElementException - if the key is not associated with any
LinkItem in this ModifiableLinkMap
public void putAll(LinkMap map)
throws java.rmi.RemoteException
LinkMap to
this LinkMap.map - the LinkMap from which to copy mappings to
this LinkMap.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations.
public LinkItem remove(java.lang.Object key)
throws java.rmi.RemoteException
LinkMap if
present.key - the key whose mapping is to be removed from this
LinkMap.LinkItem, or null if
there was no mapping for this key.java.rmi.RemoteException - if a network problem prevents this method
from fulfilling its contractual obligations
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||