public class IntervalRange extends java.lang.Object implements Range
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.
|
int |
value()
Get current index.
|
public IntervalRange(int a, int b)
public void init(int lower, int upper)
Range
public int index()
Range
© 2008-2010 by Mikio L. Braun and contributors