|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.spreadsheet.cellfinder.RangeIterator
public class RangeIterator
Iterates over a range of cells.
| Field Summary | |
|---|---|
protected int |
m_Column
the current column (index). |
protected int[] |
m_Columns
the column indices. |
protected int |
m_Row
the current row (index). |
protected int[] |
m_Rows
the row indices. |
| Constructor Summary | |
|---|---|
RangeIterator(int[] rows,
int[] cols)
Initializes the iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns whether another cell location is available. |
CellLocation |
next()
Returns the next cell location. |
void |
remove()
Not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] m_Rows
protected int[] m_Columns
protected int m_Row
protected int m_Column
| Constructor Detail |
|---|
public RangeIterator(int[] rows,
int[] cols)
rows - the row indices of the rangecols - the column indices of the range| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<CellLocation>public CellLocation next()
next in interface Iterator<CellLocation>public void remove()
remove in interface Iterator<CellLocation>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||