|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.common.util.disposable.Disposable
choco.kernel.common.util.iterators.DisposableIntIterator
choco.kernel.common.util.iterators.OneValueIterator
public final class OneValueIterator
Method Summary | |
---|---|
void |
dispose()
This method allows to declare that an object is not used anymore. |
static OneValueIterator |
getIterator(int aValue)
|
boolean |
hasNext()
Returns true if the iteration has more elements. |
void |
init(int aValue)
Freeze the iterator, cannot be reused. |
boolean |
isStored()
|
int |
next()
Returns the next element in the iteration. |
void |
pop()
|
void |
push()
|
Methods inherited from class choco.kernel.common.util.iterators.DisposableIntIterator |
---|
remove |
Methods inherited from class choco.kernel.common.util.disposable.Disposable |
---|
init, reusable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OneValueIterator getIterator(int aValue)
public void init(int aValue)
public boolean hasNext()
public int next()
NoSuchElementException
- iteration has no more elements.public void dispose()
Disposable
dispose
in class Disposable
public void push()
push
in interface IStored
public void pop()
pop
in interface IStored
public boolean isStored()
isStored
in interface IStored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |