|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterates through each number in an IntRange
.
Field Summary | |
---|---|
int |
from
|
int |
index
|
boolean |
reverse
|
int |
size
|
int |
to
|
int |
value
|
Constructor Summary | |
IntRangeIterator()
|
Method Summary | |
---|---|
def |
IntRange(int from, int to)
|
def |
IntRange(int from, int to, boolean reverse)
Creates a new IntRange .
|
boolean |
contains(Object value)
|
boolean |
containsAll(Collection other)
|
boolean |
containsWithinBounds(Object o)
|
boolean |
equals(Object that)
|
boolean |
equals(IntRange that)
|
Object |
get(int index)
|
Comparable |
getFrom()
|
int |
getFromInt()
Gets the 'from' value as an integer. |
Comparable |
getTo()
|
int |
getToInt()
Gets the 'to' value as an integer. |
boolean |
hasNext()
|
String |
inspect()
|
boolean |
isReverse()
|
Iterator |
iterator()
|
Object |
next()
|
void |
remove()
Not supported. |
int |
size()
|
void |
step(int step, Closure closure)
|
List |
step(int step)
|
List |
subList(int fromIndex, int toIndex)
|
String |
toString()
|
Constructor Detail |
---|
IntRangeIterator()
Method Detail |
---|
public def IntRange(int from, int to)
def IntRange(int from, int to, boolean reverse)
IntRange
.
true
if the range should count fromto
to from
.
from
is greater than to
.
public boolean contains(Object value)
public boolean containsAll(Collection other)
public boolean containsWithinBounds(Object o)
public boolean equals(Object that)
public boolean equals(IntRange that)
public Object get(int index)
public Comparable getFrom()
public int getFromInt()
public Comparable getTo()
public int getToInt()
public boolean hasNext()
public String inspect()
public boolean isReverse()
public Iterator iterator()
public Object next()
public void remove()
public int size()
public void step(int step, Closure closure)
public List step(int step)
public List subList(int fromIndex, int toIndex)
public String toString()