protected static class StoredIndexedBipartiteSet.BipartiteSetIterator extends DisposableIntIterator
Modifier | Constructor and Description |
---|---|
protected |
BipartiteSetIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
void |
init(int[] aList,
int[] aPosition,
IStateInt aLast,
IndexedObject[] anIdxToObjects)
Freeze the iterator, cannot be reused.
|
int |
next()
Returns the next element in the iteration.
|
IndexedObject |
nextObject() |
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
dispose, init, isNotReusable
public void init(int[] aList, int[] aPosition, IStateInt aLast, IndexedObject[] anIdxToObjects)
public boolean hasNext()
public int next()
NoSuchElementException
- iteration has no more elements.public IndexedObject nextObject()
public void remove()
remove
in interface IntIterator
remove
in class Disposable
UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.Copyright © 2018. All rights reserved.