|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for a Map ADT
| Method Summary | |
void |
assign(java.lang.Object d,
java.lang.Object c)
assign an image for a domain object. |
java.lang.Object |
deassign(java.lang.Object d)
if an image is defined for the domain object deassign it (that is, remove the pair from the Map) and return the image, otherwise throw an exception. |
java.lang.Object |
image(java.lang.Object d)
return the image of a domain object if defined, otherwise throw an exception. |
boolean |
isDefined(java.lang.Object d)
check if a codomain image is defined for a domain object |
boolean |
isEmpty()
check if the map is empty |
| Method Detail |
public boolean isEmpty()
public boolean isDefined(java.lang.Object d)
d - the domain object
public void assign(java.lang.Object d,
java.lang.Object c)
d - the domain objectc - the codomain image
public java.lang.Object image(java.lang.Object d)
throws ItemNotFound
d - the domain object
ItemNotFound - if no image exists for this object
public java.lang.Object deassign(java.lang.Object d)
throws ItemNotFound
d - the domain object
ItemNotFound - if the object has no image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||