|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.collections.StatsPropertyReader
Immutable property reader that remembers which properties have not been accessed.
Constructor Summary | |
StatsPropertyReader(PropertyReader source)
Constructs a new StatsPropertyReader based on the specified
PropertyReader . |
Method Summary | |
String |
get(String name)
Gets the value of the property with the specified name. |
Iterator |
getNames()
Gets an iterator that iterates over all the property names. |
PropertyReader |
getUnused()
Retrieves the set of unused properties. |
int |
size()
Returns the number of entries. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatsPropertyReader(PropertyReader source) throws IllegalArgumentException
StatsPropertyReader
based on the specified
PropertyReader
. The properties in source
are
copied to an internal store.
source
- the source property reader, cannot be null
.
IllegalArgumentException
- if source == null
.Method Detail |
public String get(String name) throws IllegalArgumentException
get
in interface PropertyReader
name
- the name of the property, cannot be null
.
null
if it is not set.
IllegalArgumentException
- if name == null
.public Iterator getNames()
Iterator
will return only String
instances.
getNames
in interface PropertyReader
Iterator
that will iterate over all the names, never
null
.public int size()
size
in interface PropertyReader
public PropertyReader getUnused()
PropertyReader
containing which were not queried, never
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |