AtomIterator
, AtomIteratorAtomDependent
, AtomLeafsetIterator
, AtomsetIterator
, java.io.Serializable
public 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 AtomsetIterator
public int nBody()
nBody
in interface AtomsetIterator
public IAtomList next()
next
in interface AtomLeafsetIterator
public IAtom nextAtom()
nextAtom
in interface AtomIterator
public void reset()
reset
in interface AtomsetIterator
public void unset()
unset
in interface AtomsetIterator
public void setAtom(IAtom atom)
setAtom
in interface AtomIteratorAtomDependent