public final class StringStatisticImpl extends StatisticImpl implements StringStatistic
DEFAULT_UNIT, DEFAULT_VALUE, localStrMgr, NEWLINE
Constructor and Description |
---|
StringStatisticImpl(String str,
String name,
String unit,
String desc,
long startTime,
long sampleTime)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCurrent()
Returns the String value of the statistic.
|
String |
toString() |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public StringStatisticImpl(String str, String name, String unit, String desc, long startTime, long sampleTime)
str
- The current value of this statisticname
- The name of the statisticunit
- The unit of measurement for this statisticdesc
- A brief description of the statisticstartTime
- Time in milliseconds at which the measurement was startedsampleTime
- Time at which the last measurement was done.public String getCurrent()
getCurrent
in interface StringStatistic
public String toString()
toString
in class StatisticImpl
Copyright © 2021. All rights reserved.