|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An iterator over the elements of a factor. This follows the basic
abstract Iterator interface, but doesn't throw an exception. (It
assumes it will be used properly.) I don't use the standard
interface because I extend it to go back to a positon. This is
needed for FactorExpand
.
Method Summary | |
void |
backTo(int pos)
Goes back to the given position in the iteration. |
int |
currPos()
Returns the current position in the iteration. |
boolean |
hasNext()
Returns true if the iterator has more elements. |
double |
next()
Returns the next element in the iteration. |
Method Detail |
public boolean hasNext()
public double next()
public int currPos()
public void backTo(int pos)
pos
- the position in the iteration returned by currPos
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |