public class StatisticObject extends Statistics<StatisticObject>
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
value
Object operation
|
replaceWith
Modifier | Constructor and Description |
---|---|
protected |
StatisticObject(java.lang.String name)
Creates a new instance of StatisticObject
|
Modifier and Type | Method and Description |
---|---|
protected StatisticObject |
cast()
Returns this statistics as the type provided typed argument.
|
java.lang.Object |
get() |
static StatisticObject |
getStatistics(java.lang.String name)
Create new statistic object with specified name or get the one already existing
|
java.lang.Object |
getValue()
Returns the value of this statistic.
|
boolean |
changedSinceCheckpoint()
Reports if value of statistic has been changed since the last setCheckpoint() call.
|
void |
reset()
Reset the current statistic (this one only).
|
void |
set(java.lang.Object object) |
protected void |
setFrom(StatisticObject sourceStat)
Set the value of this statistic to the actual value of the given
sourceStat . |
void |
setCheckpoint()
Sets checkpoint.
|
java.lang.String |
toString()
Text representation
|
protected void |
updateFrom(StatisticObject sourceStat)
Statistics merging
|
addBoundStat, bindTo, canPerformOperation, disableGlobally, enableGlobally, getAllStatistics, getAllStatistics, getBoundStats, getBoundTo, getName, getStatistics, isBound, isEnabledGlobally, isRegisteredGlobally, printStatistics, printStatistics, printStatistics, readResolve, removeBoundStat, removeStatistic, resetStatistics, resetStatistics, unbind
protected StatisticObject(java.lang.String name)
public void set(java.lang.Object object)
public java.lang.Object get()
public java.lang.Object getValue()
Statistics
getValue
in class Statistics<StatisticObject>
protected void updateFrom(StatisticObject sourceStat)
updateFrom
in class Statistics<StatisticObject>
sourceStat
- the statistic from which to update this statprotected void setFrom(StatisticObject sourceStat)
Statistics
sourceStat
.setFrom
in class Statistics<StatisticObject>
sourceStat
- the statistic from which to set this statpublic void reset()
reset
in class Statistics<StatisticObject>
public static StatisticObject getStatistics(java.lang.String name) throws java.lang.ClassCastException
java.lang.ClassCastException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean changedSinceCheckpoint()
public void setCheckpoint()
protected StatisticObject cast()
Statistics
cast
in class Statistics<StatisticObject>