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