|
|||||||||
| 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.GaugeIStats.Gauge.Type.Boolean Gauge.
getBooleanValue in interface IStats.GaugegetBooleanValue in class AbstractGaugeIStats.Gauge.Type.Boolean Gauge.public final byte getByteValue()
IStats.GaugeIStats.Gauge.Type.Byte Gauge.
getByteValue in interface IStats.GaugegetByteValue in class AbstractGaugeIStats.Gauge.Type.Byte Gauge.public final char getCharValue()
IStats.GaugeIStats.Gauge.Type.Char Gauge.
getCharValue in interface IStats.GaugegetCharValue in class AbstractGaugeIStats.Gauge.Type.Char Gauge.public final short getShortValue()
IStats.GaugeIStats.Gauge.Type.Short Gauge.
getShortValue in interface IStats.GaugegetShortValue in class AbstractGaugeIStats.Gauge.Type.Short Gauge.public final int getIntValue()
IStats.GaugeIStats.Gauge.Type.Int Gauge.
getIntValue in interface IStats.GaugegetIntValue in class AbstractGaugeIStats.Gauge.Type.Int Gauge.public final long getLongValue()
IStats.GaugeIStats.Gauge.Type.Long Gauge.
getLongValue in interface IStats.GaugegetLongValue in class AbstractGaugeIStats.Gauge.Type.Long Gauge.public final float getFloatValue()
IStats.GaugeIStats.Gauge.Type.Float Gauge.
getFloatValue in interface IStats.GaugegetFloatValue in class AbstractGaugeIStats.Gauge.Type.Float Gauge.public final double getDoubleValue()
IStats.GaugeIStats.Gauge.Type.Double Gauge.
getDoubleValue in interface IStats.GaugegetDoubleValue in class AbstractGaugeIStats.Gauge.Type.Double Gauge.public final XString getStringValue()
IStats.GaugeIStats.Gauge.Type.String Gauge.
getStringValue in interface IStats.GaugegetStringValue in class AbstractGaugeIStats.Gauge.Type.String Gauge.
public final void get(StringBuilder builder,
NumberFormat format)
IStats.GaugeIStats.Gauge.
to the provided StringBuilder.
get in interface IStats.Gaugeget in class AbstractGaugebuilder - 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 | ||||||||