|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.lib.IntegerExtensions.IntIterator
protected static class IntegerExtensions.IntIterator
Implementation of an iterator for integers.
Constructor Summary | |
---|---|
protected |
IntegerExtensions.IntIterator(int start,
int upTo)
Creates a new IntegerExtensions.IntIterator from start to upTo . |
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Integer |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected IntegerExtensions.IntIterator(int start, int upTo)
IntegerExtensions.IntIterator
from start
to upTo
. The iterator will iterator backwards if
upTo is smaller than the start index.
start
- the start value (inclusive).upTo
- the end value (exclusive).Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>
public java.lang.Integer next()
next
in interface java.util.Iterator<java.lang.Integer>
public void remove()
remove
in interface java.util.Iterator<java.lang.Integer>
java.lang.UnsupportedOperationException
- Always throws an UnsupportedOperationException
since this iterator does not support
removal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |