|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.data.spreadsheet.cellfinder.AbstractMetaIterator
public abstract class AbstractMetaIterator
A meta-iterator that wraps around a base iterator.
| Field Summary | |
|---|---|
protected Iterator<CellLocation> |
m_Base
the base iterator to use. |
| Constructor Summary | |
|---|---|
AbstractMetaIterator(Iterator<CellLocation> base)
Initializes the iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns whether another cell location is available. |
CellLocation |
next()
Returns the next cell location. |
protected abstract CellLocation |
process(CellLocation location)
Processes the cell location. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation), if the base iterator supports this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Iterator<CellLocation> m_Base
| Constructor Detail |
|---|
public AbstractMetaIterator(Iterator<CellLocation> base)
base - the base iterator to use| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<CellLocation>protected abstract CellLocation process(CellLocation location)
location - the location to process
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 | |||||||||