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