Constructor and Description |
---|
Bucket(long min,
long max)
Constructor with min/max value specified.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addValue(long value)
Check if value is in range and increment value number.
|
void |
clear()
Resets value number.
|
boolean |
contains(long value)
Check whether value is in the range.
|
int |
getCount()
Get number of values in the range.
|
long |
getMax()
Get upper bound of the range.
|
long |
getMin()
Get lower bound of the range.
|
void |
incrementCount()
Increment value number
|
BucketSample |
sample()
Get sample from this bucket
|
public Bucket(long min, long max)
min
- min valuemax
- max valuepublic int getCount()
public long getMax()
public long getMin()
public boolean contains(long value)
value
- Valuepublic void incrementCount()
public boolean addValue(long value)
value
- added valuepublic void clear()
public BucketSample sample()
Copyright © 2019. All rights reserved.