Package edu.jas.arith
Class ModIntIterator
- java.lang.Object
-
- edu.jas.arith.ModIntIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcurrdata structure.(package private) ModIntRingring
-
Constructor Summary
Constructors Constructor Description ModIntIterator(ModIntRing fac)ModInt iterator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Test for availability of a next element.ModIntnext()Get next integer.voidremove()Remove an element if allowed.
-
-
-
Field Detail
-
curr
int curr
data structure.
-
ring
final ModIntRing ring
-
-
Constructor Detail
-
ModIntIterator
public ModIntIterator(ModIntRing fac)
ModInt iterator constructor.- Parameters:
fac- modular integer factory;
-
-
Method Detail
-
hasNext
public boolean hasNext()
Test for availability of a next element.- Specified by:
hasNextin interfacejava.util.Iterator<ModInt>- Returns:
- true if the iteration has more elements, else false.
-
next
public ModInt next()
Get next integer.- Specified by:
nextin interfacejava.util.Iterator<ModInt>- Returns:
- next integer.
-
remove
public void remove()
Remove an element if allowed.- Specified by:
removein interfacejava.util.Iterator<ModInt>
-
-