|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Map
Interface for a Map ADT
| Method Summary | |
|---|---|
void |
assign(Object d,
Object c)
assign an image for a domain object. |
Object |
deassign(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. |
Object |
image(Object d)
return the image of a domain object if defined, otherwise throw an exception. |
boolean |
isDefined(Object d)
check if a codomain image is defined for a domain object |
boolean |
isEmpty()
check if the map is empty |
| Method Detail |
|---|
boolean isEmpty()
boolean isDefined(Object d)
d - the domain object
void assign(Object d,
Object c)
d - the domain objectc - the codomain image
Object image(Object d)
throws ItemNotFound
d - the domain object
ItemNotFound - if no image exists for this object
Object deassign(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 | ||||||||