Class MappingUncertainIterator<T,R>
java.lang.Object
com.github.basking2.sdsai.itrex.iterators.splitjoin.MappingUncertainIterator<T,R>
- All Implemented Interfaces:
UncertainIterator<R>
This does just what
MappingIterator
does but for UncertainIterator
objects.
The mapping function must define a result.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.basking2.sdsai.itrex.iterators.splitjoin.UncertainIterator
UncertainIterator.HAS_NEXT
-
Constructor Summary
ConstructorDescriptionMappingUncertainIterator
(UncertainIterator<T> uncertainIterator, MappingIterator.Mapper<T, R> mapper) -
Method Summary
Modifier and TypeMethodDescriptionhasNext()
Return TRUE if elements are ready, FALSE if they are not or MAYBE if we do not know.next()
Get the next value or throwNoSuchElementException
.
-
Constructor Details
-
MappingUncertainIterator
public MappingUncertainIterator(UncertainIterator<T> uncertainIterator, MappingIterator.Mapper<T, R> mapper)
-
-
Method Details
-
next
Description copied from interface:UncertainIterator
Get the next value or throwNoSuchElementException
.- Specified by:
next
in interfaceUncertainIterator<T>
- Returns:
- The next element.
-
hasNext
Description copied from interface:UncertainIterator
Return TRUE if elements are ready, FALSE if they are not or MAYBE if we do not know. If no other sources of data are available and the state of the computation system cannot be changed, then MAYBE should be considered FALSE.- Specified by:
hasNext
in interfaceUncertainIterator<T>
- Returns:
- TRUE if elements are ready, FALSE if they are not or MAYBE if we do not know.
-