|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.AtomIteratorNull
public final class AtomIteratorNull
Static iterator that returns no atoms.
| Field Summary | |
|---|---|
static AtomIteratorNull |
INSTANCE
|
| Method Summary | |
|---|---|
int |
nBody()
Returns the number of atoms given in each iterate, i.e., the size of the atom array returned with each call to next(). |
IAtomList |
next()
Returns the next AtomSet iterate, or null if hasNext() is false. |
IAtom |
nextAtom()
Returns the next atom in the iteration sequence, or null if hasNext() is false. |
void |
reset()
Resets the iterator to loop through its iterates again. |
int |
size()
The number of iterates returned by this iterator in its current state. |
void |
unset()
Puts iterator in a state in which hasNext() returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AtomIteratorNull INSTANCE
| Method Detail |
|---|
public IAtomList next()
AtomLeafsetIterator
next in interface AtomLeafsetIteratorpublic IAtom nextAtom()
AtomIterator
nextAtom in interface AtomIteratorpublic void reset()
AtomsetIterator
reset in interface AtomsetIteratorpublic int size()
AtomsetIterator
size in interface AtomsetIteratorpublic void unset()
AtomsetIterator
unset in interface AtomsetIteratorpublic int nBody()
AtomsetIterator
nBody in interface AtomsetIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||