|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cell
An interface for adding and retrieving the occupants of a grid cell. Multiple occupancy grids allow for more than one object to occupy the cell at a time. This Cell object is container for the multiple occupants of the grid.
| Method Summary | |
|---|---|
void |
add(java.lang.Object o)
Adds an object to this cell. |
void |
clear()
Clears all the objects from this cell. |
java.util.List |
getList()
Returns a List of the objects contained in this cell. |
java.util.Iterator |
iterator()
Returns an Iterator of the objects contained in this cell. |
void |
remove(java.lang.Object o)
Removes the specified object from this cell. |
int |
size()
Returns the number of objects in this cell. |
| Method Detail |
|---|
int size()
void clear()
void add(java.lang.Object o)
java.util.List getList()
java.util.Iterator iterator()
void remove(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||