AtomIterator, AtomIteratorAtomDependent, AtomLeafsetIterator, AtomsetIterator, java.io.Serializablepublic class AtomIteratorArrayListAdjacent extends java.lang.Object implements AtomIteratorAtomDependent, java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomSetSinglet |
atomSetSinglet |
| Constructor | Description |
|---|---|
AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction) |
Constructor gives iterator not ready for iteration.
|
AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction,
AtomToIndex atomToIndex,
AtomToAtomLeafList atomToAtomSet) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
nBody() |
Returns 1, indicating that this is an atom AtomSet iterator.
|
IAtomList |
next() |
Same as nextAtom.
|
IAtom |
nextAtom() |
Returns the next iterator, or null if hasNext is false.
|
void |
reset() |
Readies the iterator to begin iteration.
|
void |
setAtom(IAtom atom) |
Sets the first atom for iteration.
|
int |
size() |
Returns the number of iterates that iterator would give
if reset and iterated in its current condition.
|
void |
unset() |
Puts iterator in a state where hasNext is false.
|
protected final AtomSetSinglet atomSetSinglet
public AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction)
public AtomIteratorArrayListAdjacent(IteratorDirective.Direction direction, AtomToIndex atomToIndex, AtomToAtomLeafList atomToAtomSet)
public int size()
size in interface AtomsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic IAtomList next()
next in interface AtomLeafsetIteratorpublic IAtom nextAtom()
nextAtom in interface AtomIteratorpublic void reset()
reset in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic void setAtom(IAtom atom)
setAtom in interface AtomIteratorAtomDependent