public class DoubleRangeFactory extends Object
Constructor and Description |
---|
DoubleRangeFactory(double min,
double width,
double max)
Creates a new DoubleRangeFactory
|
Modifier and Type | Method and Description |
---|---|
DoubleRange |
getRange(double value,
DoubleRange reuse)
Finds the DoubleRange that a value should be grouped into
|
public DoubleRangeFactory(double min, double width, double max)
min
- a minimum value; all doubles below this value are grouped into a single rangewidth
- a standard width; all ranges between min
and max
are this wide,
with the exception of the final range which may be up to this width. Ranges
are inclusive at the lower end, and exclusive at the upper end.max
- a maximum value; all doubles above this value are grouped into a single rangepublic DoubleRange getRange(double value, DoubleRange reuse)
value
- the value to groupreuse
- an existing DoubleRange object to reuseCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.