AtomIterator, AtomLeafsetIterator, AtomsetIterator, java.io.SerializableAtomIteratorArrayList, AtomIteratorBasis, AtomIteratorLeafAtomspublic class AtomIteratorArrayListSimple extends java.lang.Object implements AtomIterator, java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomSetSinglet |
atomSetSinglet |
|
protected int |
cursor |
Index of element to be returned by subsequent call to next.
|
protected IAtomList |
list |
| Constructor | Description |
|---|---|
AtomIteratorArrayListSimple() |
Constructs new iterator with an empty list.
|
AtomIteratorArrayListSimple(IAtomList atomList) |
Constructs new iterator set to iterate given list (upon reset).
|
| Modifier and Type | Method | Description |
|---|---|---|
IAtomList |
getList() |
|
int |
nBody() |
Returns 1, indicating that this is an atom iterator.
|
IAtomList |
next() |
Same as nextAtom().
|
IAtom |
nextAtom() |
Returns the next iterate and advances the iterator.
|
void |
reset() |
Puts iterator in state ready to begin iteration.
|
void |
setList(IAtomList atomList) |
Sets the list for iteration.
|
int |
size() |
Returns the number of iterates that would be given by this iterator
if reset with the current list.
|
void |
unset() |
Puts iterator in state in which hasNext is false.
|
protected int cursor
protected IAtomList list
protected final AtomSetSinglet atomSetSinglet
public AtomIteratorArrayListSimple()
public AtomIteratorArrayListSimple(IAtomList atomList)
public void setList(IAtomList atomList)
public IAtomList getList()
public int nBody()
nBody in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic IAtom nextAtom()
nextAtom in interface AtomIteratorpublic IAtomList next()
next in interface AtomLeafsetIteratorpublic int size()
size in interface AtomsetIteratorpublic void reset()
reset in interface AtomsetIterator