Modifier and Type | Field and Description |
---|---|
private int |
counter |
private int |
lower |
private int |
upper |
private int |
value |
Constructor and Description |
---|
AllRange() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMore()
More indices available?
|
int |
index()
Consecutive numbering of current index.
|
void |
init(int l,
int u)
Initialize Range to available indices
|
int |
length()
Total number of indices.
|
void |
next()
Increase counter.
|
java.lang.String |
toString() |
int |
value()
Get current index.
|
private int lower
private int upper
private int value
private int counter
public void init(int l, int u)
Range
public int length()
Range
public int value()
Range
public int index()
Range
public void next()
Range
public boolean hasMore()
Range
public java.lang.String toString()
toString
in class java.lang.Object