Package edu.jas.arith
Class ModLongIterator
- java.lang.Object
-
- edu.jas.arith.ModLongIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longcurrdata structure.(package private) ModLongRingring
-
Constructor Summary
Constructors Constructor Description ModLongIterator(ModLongRing fac)ModLong iterator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Test for availability of a next element.ModLongnext()Get next integer.voidremove()Remove an element if allowed.
-
-
-
Field Detail
-
curr
long curr
data structure.
-
ring
final ModLongRing ring
-
-
Constructor Detail
-
ModLongIterator
public ModLongIterator(ModLongRing fac)
ModLong 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<ModLong>- Returns:
- true if the iteration has more elements, else false.
-
next
public ModLong next()
Get next integer.- Specified by:
nextin interfacejava.util.Iterator<ModLong>- Returns:
- next integer.
-
remove
public void remove()
Remove an element if allowed.- Specified by:
removein interfacejava.util.Iterator<ModLong>
-
-