AtomLeafsetIterator, AtomsetIterator, java.io.Serializablepublic class ApiInterArrayList extends java.lang.Object implements AtomLeafsetIterator, java.io.Serializable
| Constructor | Description |
|---|---|
ApiInterArrayList() |
Construct iterator with an empty lists.
|
ApiInterArrayList(IAtomList outerList,
IAtomList innerList) |
Constructs iterator to return pairs from the given lists.
|
| Modifier and Type | Method | Description |
|---|---|---|
IAtomList |
getInnerList() |
Returns the inner list used to generate the pairs.
|
IAtomList |
getOuterList() |
Returns the outer 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 |
setInnerList(IAtomList newList) |
Sets the list that will be used to generate the pairs.
|
void |
setOuterList(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 hasNext is false.
|
public ApiInterArrayList()
public void reset()
reset in interface AtomsetIteratorjava.lang.IllegalStateException - if outer and inner lists have been set to the same instancepublic void unset()
unset in interface AtomsetIteratorpublic IAtomList next()
next in interface AtomLeafsetIteratorpublic int size()
size in interface AtomsetIteratorpublic int nBody()
nBody in interface AtomsetIteratorpublic void setOuterList(IAtomList newList)
newList - the new atom list for iterationpublic void setInnerList(IAtomList newList)
newList - the new atom list for iterationpublic IAtomList getOuterList()
public IAtomList getInnerList()