|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.metdata.StationTableImpl
public class StationTableImpl
Table of reporting stations.
| Field Summary | |
|---|---|
protected Map |
byId_
Map of stations |
protected List |
stations
|
| Constructor Summary | |
|---|---|
StationTableImpl()
Create a new StationTableImpl |
|
| Method Summary | |
|---|---|
boolean |
add(Station stn)
Add a station to the table |
boolean |
add(Station stn,
boolean onlyIfNotInMap)
Add a station to the table |
Station |
get(String identifier)
Lookup Station by Identifier |
protected Map |
getMap()
Have this method here so derived classes know when anything was requested of this station table. |
Set |
keySet()
Returns the set of identifiers |
Station |
remove(Station stn)
Remove a station from the table |
Station |
remove(String id)
Remove a station from the table by it's id |
int |
size()
Returns the number of stations in this table |
Collection |
values()
Returns a collection view of the Station values contained in this table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List stations
protected final Map byId_
| Constructor Detail |
|---|
public StationTableImpl()
| Method Detail |
|---|
protected Map getMap()
public boolean add(Station stn)
stn - station to add
public boolean add(Station stn,
boolean onlyIfNotInMap)
stn - station to addonlyIfNotInMap -
public Station remove(Station stn)
stn - station to remove
public Station remove(String id)
id - station identifier
public Station get(String identifier)
get in interface StationTableidentifier - the station identifier
public Set keySet()
keySet in interface StationTablepublic int size()
size in interface StationTablepublic Collection values()
values in interface StationTable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||