public class SpaceUsage extends Object
Modifier and Type | Field and Description |
---|---|
private Map |
mStore
The map that stores the list of space objects indexed by site name.
|
Constructor and Description |
---|
SpaceUsage()
The default store.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord(String site,
Space record)
Add a Space record to the store.
|
List |
getSizes(String site)
Returns the list of
Space objects corresponding to a
particular site. |
Iterator |
siteIterator()
Returns an iterator to list of
String site identifiers
for which data is available. |
void |
sort()
Sorts the records for each site.
|
String |
toString()
Returns textual description of the object.
|
private Map mStore
public Iterator siteIterator()
String
site identifiers
for which data is available.public List getSizes(String site)
Space
objects corresponding to a
particular site.site
- the site for which sizes are required.public void addRecord(String site, Space record)
site
- the site for which the record is logged.record
- the SpaceUsage
record.public void sort()
Copyright © 2011 The University of Southern California. All Rights Reserved.