public class Histogram.Bucket extends Object implements Comparable<Histogram.Bucket>
Modifier | Constructor and Description |
---|---|
protected |
Bucket(T lowerBound,
T upperBound) |
Modifier and Type | Method and Description |
---|---|
protected void |
addValue(T value)
Add a value to this bucket
|
int |
checkValue(T value,
boolean isLast)
Check whether the value fits in this bucket.
|
int |
compareTo(Histogram.Bucket that) |
boolean |
equals(Object obj) |
T |
getLowerBound()
Get the lower bound of this bucket.
|
protected Class<T> |
getNumberClass() |
long |
getNumberOfValues()
Get the number of values in this bucket.
|
float |
getPercentageOfValues()
Return the percentage of values in the histogram that appear in this bucket.
|
T |
getUpperBound()
Get the upper bound of this bucket.
|
T |
getWidth()
Get the width of this bucket.
|
int |
hashCode() |
String |
toString() |
public T getLowerBound()
public T getUpperBound()
public T getWidth()
public float getPercentageOfValues()
protected void addValue(T value)
value
- public long getNumberOfValues()
public int checkValue(T value, boolean isLast)
value
- the value to checkisLast
- public int compareTo(Histogram.Bucket that)
compareTo
in interface Comparable<Histogram.Bucket>
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.