SiteIterator, java.io.Serializablepublic static class RectangularLattice.Iterator extends java.lang.Object implements SiteIterator, java.io.Serializable
| Constructor | Description |
|---|---|
Iterator(int D) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
Indicates whether the iterator has another site to return.
|
java.lang.Object |
next() |
Returns the next iterate.
|
int[] |
nextIndex() |
Returns the index of the next iterate while advancing iterator.
|
java.lang.Object |
peek() |
Returns the next iterate without advancing the iterator.
|
void |
reset() |
Puts the iterator in a state ready to begin iteration.
|
void |
setLattice(FiniteLattice lattice) |
Sets the lattice having the sites to be given by this iterator.
|
int |
size() |
Returns the number of iterates that this iterator would give
if reset.
|
void |
unset() |
Puts the iterator in a state such that hasNext is false.
|
public boolean hasNext()
SiteIteratorhasNext in interface SiteIteratorpublic java.lang.Object next()
SiteIteratornext in interface SiteIteratorpublic int[] nextIndex()
SiteIteratornextIndex in interface SiteIteratorpublic java.lang.Object peek()
SiteIteratorpeek in interface SiteIteratorpublic void reset()
SiteIteratorreset in interface SiteIteratorpublic int size()
SiteIteratorsize in interface SiteIteratorpublic void unset()
SiteIteratorunset in interface SiteIteratorpublic void setLattice(FiniteLattice lattice)
SiteIteratorsetLattice in interface SiteIterator