|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.util.SidiousMap
@ThreadSafe public class SidiousMap
This class implements the synchronized
access functionality of
a HashMap
.
HashMap
Field Summary | |
---|---|
private java.util.Map<SuperLinkID,PlanRequester> |
map
Internal map instance. |
Constructor Summary | |
---|---|
SidiousMap()
Empty default constructor. |
Method Summary | |
---|---|
PlanRequester |
get(SuperLinkID id)
Returns the PlanRequester to which the specified id is mapped in this identity map, or null if the map contains no mapping for
this id. |
PlanRequester |
put(SuperLinkID id,
PlanRequester requester)
Associates the specified id with the specified requester in this map. |
void |
remove(SuperLinkID id)
Removes the mapping for this key from this map if it is present. |
int |
size()
Returns the number of key-value mappings in this sidious map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map<SuperLinkID,PlanRequester> map
Constructor Detail |
---|
public SidiousMap()
Method Detail |
---|
public PlanRequester get(SuperLinkID id)
null
if the map contains no mapping for
this id.
id
- the id whose associated requester is to be returned
null
if the map contains no mapping for this idpublic PlanRequester put(SuperLinkID id, PlanRequester requester)
id
- key with which the specified requester is to be associatedrequester
- value to be associated with the specified id
null
if the map did not previously contain a mapping for this id.public void remove(SuperLinkID id)
id
- the id for whic to remove the mappingpublic int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |