public class Stat
extends java.lang.Object
long
, double
, String
or a histogram
(Map<String, Long>
).
The value type can be queried (using isInt()
, isDouble()
, etc.) and
the stored value can be accessed (using getInt()
, getDouble()
, etc.).
It is possible to query whether this statistic is an internal statistic by
isInternal()
and whether its value is the default value by isDefault()
.Modifier and Type | Field and Description |
---|---|
protected long |
pointer |
Modifier and Type | Method and Description |
---|---|
void |
deletePointer() |
protected void |
deletePointer(long pointer) |
double |
getDouble()
Return the double value.
|
java.util.Map<java.lang.String,java.lang.Long> |
getHistogram()
Return the histogram value.
|
long |
getInt()
Return the integer value.
|
long |
getPointer() |
java.lang.String |
getString()
Return the string value.
|
boolean |
isDefault()
Does this value hold the default value?
|
boolean |
isDouble()
Is this value a double?
|
boolean |
isHistogram()
Is this value a histogram?
|
boolean |
isInt()
Is this value an integer?
|
boolean |
isInternal()
Is this value intended for internal use only?
|
boolean |
isString()
Is this value a string?
|
java.lang.String |
toString() |
protected java.lang.String |
toString(long pointer) |
protected void deletePointer(long pointer)
protected java.lang.String toString(long pointer)
public boolean isInternal()
public boolean isDefault()
public boolean isInt()
public long getInt()
public boolean isDouble()
public double getDouble()
public boolean isString()
public java.lang.String getString()
public boolean isHistogram()
public java.util.Map<java.lang.String,java.lang.Long> getHistogram()
public long getPointer()
public void deletePointer()
public java.lang.String toString()
toString
in class java.lang.Object