Class UnionIteratorForSolMaps
java.lang.Object
se.liu.ida.hefquin.base.data.utils.UnionIteratorForSolMaps
- All Implemented Interfaces:
Iterator<SolutionMapping>
This iterator enumerates the solution mappings from two other iterators,
essentially producing a union of the collections of solution mappings
that the other two iterators enumerate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Iterator<SolutionMapping>
protected boolean
protected final Iterator<SolutionMapping>
-
Constructor Summary
ConstructorsConstructorDescriptionUnionIteratorForSolMaps
(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) UnionIteratorForSolMaps
(Iterator<SolutionMapping> input1, Iterator<SolutionMapping> input2) -
Method Summary
Modifier and TypeMethodDescriptionstatic WrappingIterable<SolutionMapping>
createAsIterable
(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) getFactory
(Iterable<SolutionMapping> input2) boolean
hasNext()
next()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
input2
-
currentInput
-
firstInputExhausted
protected boolean firstInputExhausted
-
-
Constructor Details
-
UnionIteratorForSolMaps
-
UnionIteratorForSolMaps
-
-
Method Details
-
createAsIterable
public static WrappingIterable<SolutionMapping> createAsIterable(Iterable<SolutionMapping> input1, Iterable<SolutionMapping> input2) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<SolutionMapping>
-
next
- Specified by:
next
in interfaceIterator<SolutionMapping>
-
getFactory
-