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