|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Objects held by the IStoneTraypublic interface IStoneTray<E extends Sizeable>
Interface for the StoneTray
model
Method Summary | |
---|---|
IStoneTray<E> |
clone()
Create a clone of the StoneTray |
void |
drop(E object,
Position position)
Adds object to the tray |
Position |
getPosition(E object)
Returns the position of an object that is already on the tray |
int |
getSize()
Return the number of objects on the tray |
boolean |
pickUp(E object)
Tries to pick up (remove) a given object |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void drop(E object, Position position)
object
- object to add to Handposition
- Position
to put the objectPosition getPosition(E object)
object
- object whose position is requested
boolean pickUp(E object)
object
- object to pick up
IStoneTray<E> clone()
int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |