public static class Statistics.Item extends Object implements Serializable, Comparable<Statistics.Item>
| Constructor and Description |
|---|
Statistics.Item(String name)
Create a new sample.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(long value)
Adds a new sample to this item.
|
int |
compareTo(Statistics.Item o) |
long |
getAccumulator() |
long |
getAverage()
Returns the average value.
|
long |
getMaximum()
Returns the maximum value.
|
long |
getMinimum()
Returns the minimum value.
|
String |
getName()
Returns the sample name.
|
int |
getSampleCount() |
protected void |
merge(Statistics.Item otherItem)
Merges this item with another.
|
String |
toString() |
public Statistics.Item(String name)
name - the item namepublic String getName()
public long getMinimum()
public long getMaximum()
public long getAverage()
public long getAccumulator()
public int getSampleCount()
public void addSample(long value)
value - the valuepublic int compareTo(Statistics.Item o)
compareTo in interface Comparable<Statistics.Item>protected void merge(Statistics.Item otherItem)
otherItem - the other itemCopyright © 2003–2014 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.