Class ModIntegerIterator
java.lang.Object
edu.jas.arith.ModIntegerIterator
- All Implemented Interfaces:
Iterator<ModInteger>
Modular integer iterator.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BigIntegerdata structure.(package private) final ModIntegerRing -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
curr
BigInteger currdata structure. -
ring
-
-
Constructor Details
-
ModIntegerIterator
ModInteger iterator constructor.- Parameters:
fac- modular integer factory;
-
-
Method Details
-
hasNext
public boolean hasNext()Test for availability of a next element.- Specified by:
hasNextin interfaceIterator<ModInteger>- Returns:
- true if the iteration has more elements, else false.
-
next
Get next integer.- Specified by:
nextin interfaceIterator<ModInteger>- Returns:
- next integer.
-
remove
public void remove()Remove an element if allowed.- Specified by:
removein interfaceIterator<ModInteger>
-