|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.stats.AbstractGauge
com.neeve.stats.FieldReflectingGauge
public class FieldReflectingGauge
A IStats.Gauge
that gets its value by reflecting on a Field
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.neeve.stats.IStats.Gauge |
---|
IStats.Gauge.Type |
Constructor Summary | |
---|---|
FieldReflectingGauge(String name,
Object target,
Field field)
|
Method Summary | |
---|---|
void |
get(StringBuilder builder,
NumberFormat format)
Appends the current value of this IStats.Gauge . |
boolean |
getBooleanValue()
Gets the current value for a IStats.Gauge.Type.Boolean Gauge. |
byte |
getByteValue()
Gets the current value for a IStats.Gauge.Type.Byte Gauge. |
char |
getCharValue()
Gets the current value for a IStats.Gauge.Type.Char Gauge. |
double |
getDoubleValue()
Gets the current value for a IStats.Gauge.Type.Double Gauge. |
float |
getFloatValue()
Gets the current value for a IStats.Gauge.Type.Float Gauge. |
int |
getIntValue()
Gets the current value for a IStats.Gauge.Type.Int Gauge. |
long |
getLongValue()
Gets the current value for a IStats.Gauge.Type.Long Gauge. |
short |
getShortValue()
Gets the current value for a IStats.Gauge.Type.Short Gauge. |
XString |
getStringValue()
Gets the current value for a IStats.Gauge.Type.String Gauge. |
Methods inherited from class com.neeve.stats.AbstractGauge |
---|
getName, getNameAsRaw, getType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldReflectingGauge(String name, Object target, Field field)
Method Detail |
---|
public final boolean getBooleanValue()
IStats.Gauge
IStats.Gauge.Type.Boolean
Gauge.
getBooleanValue
in interface IStats.Gauge
getBooleanValue
in class AbstractGauge
IStats.Gauge.Type.Boolean
Gauge.public final byte getByteValue()
IStats.Gauge
IStats.Gauge.Type.Byte
Gauge.
getByteValue
in interface IStats.Gauge
getByteValue
in class AbstractGauge
IStats.Gauge.Type.Byte
Gauge.public final char getCharValue()
IStats.Gauge
IStats.Gauge.Type.Char
Gauge.
getCharValue
in interface IStats.Gauge
getCharValue
in class AbstractGauge
IStats.Gauge.Type.Char
Gauge.public final short getShortValue()
IStats.Gauge
IStats.Gauge.Type.Short
Gauge.
getShortValue
in interface IStats.Gauge
getShortValue
in class AbstractGauge
IStats.Gauge.Type.Short
Gauge.public final int getIntValue()
IStats.Gauge
IStats.Gauge.Type.Int
Gauge.
getIntValue
in interface IStats.Gauge
getIntValue
in class AbstractGauge
IStats.Gauge.Type.Int
Gauge.public final long getLongValue()
IStats.Gauge
IStats.Gauge.Type.Long
Gauge.
getLongValue
in interface IStats.Gauge
getLongValue
in class AbstractGauge
IStats.Gauge.Type.Long
Gauge.public final float getFloatValue()
IStats.Gauge
IStats.Gauge.Type.Float
Gauge.
getFloatValue
in interface IStats.Gauge
getFloatValue
in class AbstractGauge
IStats.Gauge.Type.Float
Gauge.public final double getDoubleValue()
IStats.Gauge
IStats.Gauge.Type.Double
Gauge.
getDoubleValue
in interface IStats.Gauge
getDoubleValue
in class AbstractGauge
IStats.Gauge.Type.Double
Gauge.public final XString getStringValue()
IStats.Gauge
IStats.Gauge.Type.String
Gauge.
getStringValue
in interface IStats.Gauge
getStringValue
in class AbstractGauge
IStats.Gauge.Type.String
Gauge.public final void get(StringBuilder builder, NumberFormat format)
IStats.Gauge
IStats.Gauge
.
to the provided StringBuilder
.
get
in interface IStats.Gauge
get
in class AbstractGauge
builder
- The builder to which to append the gauge value results.format
- The number format to use for numeric formats.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |