public static class DebugHistogram.CountedValue extends Object implements Comparable<DebugHistogram.CountedValue>
#compareTo(CountedValue) places
values with higher frequencies first.| Modifier and Type | Field and Description |
|---|---|
private long |
count |
private Object |
value |
| Constructor and Description |
|---|
CountedValue(long count,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long n) |
int |
compareTo(DebugHistogram.CountedValue o) |
long |
getCount() |
Object |
getValue() |
void |
inc() |
String |
toString() |
public CountedValue(long count, Object value)
public int compareTo(DebugHistogram.CountedValue o)
compareTo in interface Comparable<DebugHistogram.CountedValue>public void inc()
public void add(long n)
public long getCount()