public class DoubleRange extends NumericRange<Double>
| Modifier and Type | Field and Description |
|---|---|
static BinaryFunction<Double,Double,Double> |
DEFAULT_STEP
Calculate default step.
|
leftEndpoint, rightEndpoint, stepDEFAULT_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.
|
containscontainsAll, equals, getLeftEndpoint, getRightEndpoint, getStep, hashCode, isEmpty, iterator, toStringpublic 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 nullpublic 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 nullpublic DoubleRange(Endpoint<Double> from, Endpoint<Double> to, double step)
from - startto - endstep - incrementNullPointerException - if either Endpoint is nullpublic 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 nullprotected Iterator<Double> createIterator()
createIterator in class AbstractRange<Double,Double>Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.