public abstract class AbstractGauge extends Object implements IStats.Gauge
IStats.Gauge stats.
Subclass should override the accesor based on the IStats.Gauge.Type that
they implement.
IStats.Gauge.Type| 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. |
String |
getName()
Gets statistic name.
|
XString |
getNameAsRaw()
Gets the stat's name as a
XString. |
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. |
IStats.Gauge.Type |
getType()
Gets the
IStats.Gauge.Type of the IStats.Gauge. |
public final IStats.Gauge.Type getType()
IStats.GaugeIStats.Gauge.Type of the IStats.Gauge.getType in interface IStats.GaugeIStats.Gauge.Type of the IStats.Gauge.public final String getName()
IStats.GaugegetName in interface IStats.Gaugepublic final XString getNameAsRaw()
IStats.GaugeXString.getNameAsRaw in interface IStats.Gaugepublic boolean getBooleanValue()
IStats.GaugeIStats.Gauge.Type.Boolean Gauge.getBooleanValue in interface IStats.GaugeIStats.Gauge.Type.Boolean Gauge.public byte getByteValue()
IStats.GaugeIStats.Gauge.Type.Byte Gauge.getByteValue in interface IStats.GaugeIStats.Gauge.Type.Byte Gauge.public char getCharValue()
IStats.GaugeIStats.Gauge.Type.Char Gauge.getCharValue in interface IStats.GaugeIStats.Gauge.Type.Char Gauge.public short getShortValue()
IStats.GaugeIStats.Gauge.Type.Short Gauge.getShortValue in interface IStats.GaugeIStats.Gauge.Type.Short Gauge.public int getIntValue()
IStats.GaugeIStats.Gauge.Type.Int Gauge.getIntValue in interface IStats.GaugeIStats.Gauge.Type.Int Gauge.public long getLongValue()
IStats.GaugeIStats.Gauge.Type.Long Gauge.getLongValue in interface IStats.GaugeIStats.Gauge.Type.Long Gauge.public float getFloatValue()
IStats.GaugeIStats.Gauge.Type.Float Gauge.getFloatValue in interface IStats.GaugeIStats.Gauge.Type.Float Gauge.public double getDoubleValue()
IStats.GaugeIStats.Gauge.Type.Double Gauge.getDoubleValue in interface IStats.GaugeIStats.Gauge.Type.Double Gauge.public XString getStringValue()
IStats.GaugeIStats.Gauge.Type.String Gauge.getStringValue in interface IStats.GaugeIStats.Gauge.Type.String Gauge.public void get(StringBuilder builder, NumberFormat format)
IStats.GaugeIStats.Gauge.
to the provided StringBuilder.get in interface IStats.Gaugebuilder - 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.