public class CacheIntIterator extends DisposableIntIterator
Constructor and Description |
---|
CacheIntIterator(DisposableIntIterator iterator) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This method allows to declare that the iterator is not used anymoure.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
void |
init()
Freeze the iterator, cannot be reused.
|
void |
init(DisposableIntIterator iterator) |
int |
next()
Returns the next element in the iteration.
|
isReusable, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
public CacheIntIterator(DisposableIntIterator iterator)
public void init(DisposableIntIterator iterator)
public void init()
Disposable
init
in class Disposable
public void dispose()
Disposable
dispose
in class Disposable
public boolean hasNext()
IntIterator
public int next()
IntIterator
Copyright © 2015. All rights reserved.