|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.iterator.ApiIntraArrayList
public class ApiIntraArrayList
Returns all pairs formed from a single list of atoms.
| Constructor Summary | |
|---|---|
ApiIntraArrayList()
Construct iterator with an empty list. |
|
ApiIntraArrayList(IAtomList list)
Constructs iterator to return pairs from the given list. |
|
| Method Summary | |
|---|---|
IAtomList |
getList()
Returns the list used to generate the pairs. |
int |
nBody()
Returns 2, indicating that this is a pair iterator |
IAtomList |
next()
Returns the next iterate pair. |
void |
reset()
Sets iterator in condition to begin iteration. |
void |
setList(IAtomList newList)
Sets the list that will be used to generate the pairs. |
int |
size()
Returns the number of iterates, which is list.size*(list.size-1)/2 |
void |
unset()
Sets iterator such that next is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApiIntraArrayList()
public ApiIntraArrayList(IAtomList list)
list - | Method Detail |
|---|
public void reset()
reset in interface AtomsetIteratorpublic void unset()
unset in interface AtomsetIteratorpublic int size()
size in interface AtomsetIteratorpublic IAtomList next()
next in interface AtomLeafsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic void setList(IAtomList newList)
atomList - the new atom list for iterationpublic IAtomList getList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||