public class Statistics extends Object implements Serializable, Iterable<Statistics.Item>
long.| Modifier and Type | Class and Description |
|---|---|
static class |
Statistics.Item
This class represents a single statistics item with name, min/max/avg
value.
|
| Constructor and Description |
|---|
Statistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(String name,
long value)
Adds a new sample to these statistics.
|
void |
dump() |
void |
dump(PrintWriter pw) |
Iterator<Statistics.Item> |
iterator() |
void |
merge(Statistics statistics)
Merges these statistics with others.
|
public void addSample(String name, long value)
name - the namevalue - the valuepublic void merge(Statistics statistics)
statistics - the other statisticspublic void dump()
public void dump(PrintWriter pw)
public Iterator<Statistics.Item> iterator()
iterator in interface Iterable<Statistics.Item>Copyright © 2003–2014 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.