| Constructor and Description |
|---|
IntervalRange(int a,
int b)
Construct new interval range.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMore()
More indices available?
|
int |
index()
Consecutive numbering of current index.
|
void |
init(int lower,
int upper)
Initialize Range to available indices
|
int |
length()
Total number of indices.
|
void |
next()
Increase counter.
|
String |
toString() |
int |
value()
Get current index.
|
public IntervalRange(int a,
int b)
public void init(int lower,
int upper)
Rangepublic int length()
Rangepublic void next()
Rangepublic int index()
Rangepublic int value()
Rangepublic boolean hasMore()
RangeCopyright © 2015. All rights reserved.