public class FieldReflectingGauge extends AbstractGauge
IStats.Gauge that gets its value by reflecting on a Field.IStats.Gauge.Type| Constructor and Description |
|---|
FieldReflectingGauge(String name,
Object target,
Field field) |
| Modifier and Type | Method and Description |
|---|---|
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. |
getName, getNameAsRaw, getTypepublic 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.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.