public class DoubleRange extends NumericRange<Double>
Modifier and Type | Field and Description |
---|---|
static BinaryFunction<Double,Double,Double> |
DEFAULT_STEP
Calculate default step.
|
leftEndpoint, rightEndpoint, step
DEFAULT_LEFT_BOUND_TYPE, DEFAULT_RIGHT_BOUND_TYPE
Constructor and Description |
---|
DoubleRange(double from,
BoundType leftBoundType,
double to,
BoundType rightBoundType)
Create a new DoubleRange.
|
DoubleRange(double from,
BoundType leftBoundType,
double to,
BoundType rightBoundType,
double step)
Create a new DoubleRange.
|
DoubleRange(double from,
double to)
Create a new DoubleRange.
|
DoubleRange(double from,
double to,
double step)
Create a new DoubleRange.
|
DoubleRange(Endpoint<Double> from,
Endpoint<Double> to)
Create a new DoubleRange.
|
DoubleRange(Endpoint<Double> from,
Endpoint<Double> to,
double step)
Create a new DoubleRange.
|
DoubleRange(Number from,
Number to)
Create a new DoubleRange.
|
DoubleRange(Number from,
Number to,
Number step)
Create a new DoubleRange.
|
Modifier and Type | Method and Description |
---|---|
protected Iterator<Double> |
createIterator()
Create a non-empty iterator.
|
contains
containsAll, equals, getLeftEndpoint, getRightEndpoint, getStep, hashCode, isEmpty, iterator, toString
public static final BinaryFunction<Double,Double,Double> DEFAULT_STEP
public DoubleRange(Number from, Number to)
from
- startto
- endpublic DoubleRange(Number from, Number to, Number step)
from
- startto
- endstep
- incrementpublic DoubleRange(double from, double to)
from
- startto
- endpublic DoubleRange(double from, double to, double step)
from
- startto
- endstep
- incrementpublic DoubleRange(Endpoint<Double> from, Endpoint<Double> to)
from
- startto
- endNullPointerException
- if either Endpoint
is null
public DoubleRange(double from, BoundType leftBoundType, double to, BoundType rightBoundType)
from
- startleftBoundType
- type of left boundto
- endrightBoundType
- type of right boundNullPointerException
- if either bound type is null
public DoubleRange(Endpoint<Double> from, Endpoint<Double> to, double step)
from
- startto
- endstep
- incrementNullPointerException
- if either Endpoint
is null
public DoubleRange(double from, BoundType leftBoundType, double to, BoundType rightBoundType, double step)
from
- startleftBoundType
- type of left boundto
- endrightBoundType
- type of right boundstep
- incrementNullPointerException
- if either bound type is null
protected Iterator<Double> createIterator()
createIterator
in class AbstractRange<Double,Double>
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.