|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xsmeral.pipe.stats.Stats.Reader
public static class Stats.Reader
The main implementation of StatsReader.
Provides methods for reading and conversion of stat values stored in
processing context.
The methods automatically convert values, i.e. an int
can
be accessed with getDouble
and vice
versa.
Method Summary | |
---|---|
Double |
getDouble(String fullStatName)
Returns value of the context parameter with the supplied name as a Double. |
Double |
getDouble(String group,
String stat)
Returns value of the statistic specified by group and name as a Double. |
Long |
getLong(String fullStatName)
Returns value of the context parameter with the supplied name as a Long. |
Long |
getLong(String group,
String stat)
Returns value of the statistic specified by group and name as a Long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Double getDouble(String fullStatName)
getDouble
in interface StatsReader
fullStatName
- Full name of the context parameter
public Double getDouble(String group, String stat)
getDouble
in interface StatsReader
group
- Group namestat
- Stat name
public Long getLong(String fullStatName)
getLong
in interface StatsReader
fullStatName
- Full name of the context parameter
public Long getLong(String group, String stat)
getLong
in interface StatsReader
group
- Group namestat
- Stat name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |