Package edu.jas.arith
Class ModIntIterator
- java.lang.Object
-
- edu.jas.arith.ModIntIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
curr
data structure.(package private) ModIntRing
ring
-
Constructor Summary
Constructors Constructor Description ModIntIterator(ModIntRing fac)
ModInt iterator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Test for availability of a next element.ModInt
next()
Get next integer.void
remove()
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:
hasNext
in interfacejava.util.Iterator<ModInt>
- Returns:
- true if the iteration has more elements, else false.
-
next
public ModInt next()
Get next integer.- Specified by:
next
in interfacejava.util.Iterator<ModInt>
- Returns:
- next integer.
-
remove
public void remove()
Remove an element if allowed.- Specified by:
remove
in interfacejava.util.Iterator<ModInt>
-
-