|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.iter.ReadOnlyIterator<T>
edu.rice.cs.plt.iter.IndexedIterator<T>
public abstract class IndexedIterator<T>
An iterator for index-based data structures. Subclasses are only required to
implement size() and get(int).
| Constructor Summary | |
|---|---|
protected |
IndexedIterator()
|
| Method Summary | |
|---|---|
protected abstract T |
get(int index)
|
boolean |
hasNext()
|
T |
next()
|
protected abstract int |
size()
|
| Methods inherited from class edu.rice.cs.plt.iter.ReadOnlyIterator |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IndexedIterator()
| Method Detail |
|---|
protected abstract int size()
protected abstract T get(int index)
public boolean hasNext()
public T next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||