edu.rit.hyb.prime
Interface LongIterator
-
public interface LongIteratorInterface LongIterator specifies the interface for an iterator over a sequence of positive numbers of type long.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()Close this iterator.longnext()Returns the next number in the sequence.
-
-
-
Method Detail
-
next
long next() throws java.io.IOException
Returns the next number in the sequence.- Returns:
- Number, or 0 if there are no more numbers.
- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
close
void close() throws java.io.IOExceptionClose this iterator. Call close() when done using this iterator, to release resources.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
-
DMelt 3.0 © DataMelt by jWork.ORG