|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.stats.AbstractGauge
public abstract class AbstractGauge
Base class for IStats.Gauge
stats.
Subclass should override the accesor based on the IStats.Gauge.Type
that
they implement.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.neeve.stats.IStats.Gauge |
---|
IStats.Gauge.Type |
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. |
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 . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final IStats.Gauge.Type getType()
IStats.Gauge
IStats.Gauge.Type
of the IStats.Gauge
.
getType
in interface IStats.Gauge
IStats.Gauge.Type
of the IStats.Gauge
.public final String getName()
IStats.Gauge
getName
in interface IStats.Gauge
public final XString getNameAsRaw()
IStats.Gauge
XString
.
getNameAsRaw
in interface IStats.Gauge
public boolean getBooleanValue()
IStats.Gauge
IStats.Gauge.Type.Boolean
Gauge.
getBooleanValue
in interface IStats.Gauge
IStats.Gauge.Type.Boolean
Gauge.public byte getByteValue()
IStats.Gauge
IStats.Gauge.Type.Byte
Gauge.
getByteValue
in interface IStats.Gauge
IStats.Gauge.Type.Byte
Gauge.public char getCharValue()
IStats.Gauge
IStats.Gauge.Type.Char
Gauge.
getCharValue
in interface IStats.Gauge
IStats.Gauge.Type.Char
Gauge.public short getShortValue()
IStats.Gauge
IStats.Gauge.Type.Short
Gauge.
getShortValue
in interface IStats.Gauge
IStats.Gauge.Type.Short
Gauge.public int getIntValue()
IStats.Gauge
IStats.Gauge.Type.Int
Gauge.
getIntValue
in interface IStats.Gauge
IStats.Gauge.Type.Int
Gauge.public long getLongValue()
IStats.Gauge
IStats.Gauge.Type.Long
Gauge.
getLongValue
in interface IStats.Gauge
IStats.Gauge.Type.Long
Gauge.public float getFloatValue()
IStats.Gauge
IStats.Gauge.Type.Float
Gauge.
getFloatValue
in interface IStats.Gauge
IStats.Gauge.Type.Float
Gauge.public double getDoubleValue()
IStats.Gauge
IStats.Gauge.Type.Double
Gauge.
getDoubleValue
in interface IStats.Gauge
IStats.Gauge.Type.Double
Gauge.public XString getStringValue()
IStats.Gauge
IStats.Gauge.Type.String
Gauge.
getStringValue
in interface IStats.Gauge
IStats.Gauge.Type.String
Gauge.public void get(StringBuilder builder, NumberFormat format)
IStats.Gauge
IStats.Gauge
.
to the provided StringBuilder
.
get
in interface IStats.Gauge
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 |