|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.ds.LocationList
This class represents a list of locations.
Constructor Summary | |
LocationList()
Default constructor |
|
LocationList(LocationList newLocationList)
Copy constructor |
Method Summary | |
void |
add(Location newLocation)
Add a new element to the end of the list |
void |
add(LocationList newLocationList)
Add the given location list to the end of the list |
int |
count()
Get the number of elements. |
Location |
first()
Get the first element (also Reset to the first element position) |
Location |
getAt(int index)
Get the element at a particular position (zero-based index) |
Location |
next()
Get the next element. |
void |
removeAll()
Remove all the elements from the location list object |
void |
reset()
Reset to the first element position |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LocationList()
public LocationList(LocationList newLocationList)
newLocationList
- an input location list objectMethod Detail |
public void removeAll()
public int count()
public void reset()
public Location first()
public Location next()
public void add(Location newLocation)
newLocation
- the new location object to be added to the listpublic void add(LocationList newLocationList)
newLocationList
- the new location list to be added to the listpublic Location getAt(int index)
index
- the index of the element to be retrieved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |