|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.antlr.stringtemplate.language.ArrayIterator
public class ArrayIterator
Iterator for an array so I don't have to copy the array to a List just to make it iteratable.
| Field Summary | |
|---|---|
protected java.lang.Object |
array
|
protected int |
i
Index into the data array |
protected int |
n
Arrays are fixed size; precompute. |
| Constructor Summary | |
|---|---|
ArrayIterator(java.lang.Object array)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int i
protected java.lang.Object array
protected int n
| Constructor Detail |
|---|
public ArrayIterator(java.lang.Object array)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||