public class CrimeRecordList
extends java.lang.Object
Constructor and Description |
---|
CrimeRecordList() |
Modifier and Type | Method and Description |
---|---|
void |
add(CrimeRecord cr)
Add a crime record to the end of the list.
|
static CrimeRecordList |
concat(CrimeRecordList a,
CrimeRecordList b)
This routine creates a new list from the data in two existing lists.
|
int |
getSize() |
boolean |
hasNext()
return true if the internal ptr is not null.
|
CrimeRecord |
next() |
void |
start()
Set the internal pointer to the head of the list.
|
void |
toGoogleEarth(java.lang.String pathToFile)
This method generates a KML document to the user selected file name.
|
java.lang.String |
toKml()
This methods returns a KMl representation
of this list of crime records.
|
public int getSize()
public void add(CrimeRecord cr)
cr
- public void start()
public boolean hasNext()
public CrimeRecord next()
public java.lang.String toKml()
public void toGoogleEarth(java.lang.String pathToFile) throws java.io.IOException
pathToFile
- is the entire path to the filejava.io.IOException
public static CrimeRecordList concat(CrimeRecordList a, CrimeRecordList b)
a
- b
-