public static interface BinaryMatrix.CellIterator
Iterator-like interface| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
int[] |
next()
Returns the next cell in the iteration.
|
void |
remove()
Removes from the underlying matrix the last cell returned by the
iterator (optional operation).
|
void |
skipAllBefore(int row,
int col)
Skips all the cells before the the specified cell, so that
next() gives the given cell or, if it does not exist, the
cell immediately after according to the sorting provided by this set. |
boolean hasNext()
int[] next()
NoSuchElementException - iteration has no more cells.void remove()
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.void skipAllBefore(int row,
int col)
next() gives the given cell or, if it does not exist, the
cell immediately after according to the sorting provided by this set.
If cell is less than the next cell, it does nothing
row - row of the cellcol - column of the cellCopyright © 2016. All rights reserved.