Interface Iterator<T>
-
- Type Parameters:
T
- the item type.
- All Known Subinterfaces:
BoundedIterator<T>
- All Known Implementing Classes:
ArrayIterator
,BooleanIterator
,CollectionIterator
,EmptyIterator
,FilteringIterator
,FpDivHardToDRoundIterator
,FpDivHardToNRoundIterator
,FpDivHardToRoundIterator
,FpMulHardToDRoundIterator
,FpMulHardToRoundIterator
,FpSqrtHardToDRoundIterator
,FpSqrtHardToNRoundIterator
,FpSqrtHardToRoundIterator
,IntRangeIterator
,IntSpecialValueIterator
,LongRangeIterator
,ProductIterator
,RandomValueIterator
,SequenceIterator
,SingleValueIterator
public interface Iterator<T>
Iterator
is a generic iterator interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<T>
clone()
Creates a copy of the iterator.boolean
hasValue()
Checks if the iterator is not exhausted (a value is available).void
init()
Initializes the iterator.void
next()
Makes an iteration.void
stop()
Stops the iterator.T
value()
Returns the current value of the iterator.
-
-
-
Method Detail
-
init
void init()
Initializes the iterator.
-
hasValue
boolean hasValue()
Checks if the iterator is not exhausted (a value is available).- Returns:
true
if the iterator is not exhausted;false
otherwise.
-
value
T value()
Returns the current value of the iterator.- Returns:
- the current value of the iterator.
-
next
void next()
Makes an iteration.
-
stop
void stop()
Stops the iterator.
-
-