org.javasimon.callback.quantiles
Class BucketSample

java.lang.Object
  extended by org.javasimon.callback.quantiles.BucketSample

public final class BucketSample
extends Object

Bucket sample.

Since:
3.3
Author:
gquintana

Field Summary
private  int count
          Number of values in the range min-max.
private  long max
          Maximal value.
private  long min
          Minimal value.
 
Constructor Summary
BucketSample(long min, long max, int count)
          Constructor with min/max value specified.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

private final long min
Minimal value.


max

private final long max
Maximal value.


count

private final int count
Number of values in the range min-max.

Constructor Detail

BucketSample

public BucketSample(long min,
                    long max,
                    int count)
Constructor with min/max value specified.

Parameters:
min - min value
max - max value
Method Detail

getCount

public int getCount()
Get number of values in the range.

Returns:
number of value in the range

getMax

public long getMax()
Get upper bound of the range.

Returns:
max value

getMin

public long getMin()
Get lower bound of the range.

Returns:
min value


Copyright © 2013. All Rights Reserved.