Package cc.redberry.combinatorics
Class IntCombinatorialPort.Iterator
- java.lang.Object
-
- cc.redberry.combinatorics.IntCombinatorialIterator
-
- cc.redberry.combinatorics.IntCombinatorialPort.Iterator
-
- All Implemented Interfaces:
CombinatorialIterator<int[]>,java.io.Serializable,java.lang.Iterable<int[]>,java.util.Iterator<int[]>
- Enclosing interface:
- IntCombinatorialPort
public static final class IntCombinatorialPort.Iterator extends IntCombinatorialIterator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int[]next(package private) IntCombinatorialPortport
-
Constructor Summary
Constructors Constructor Description Iterator(IntCombinatorialPort port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]current()Returns the reference on the current iteration element.booleanhasNext()int[]next()voidreset()Resets the iteration-
Methods inherited from class cc.redberry.combinatorics.IntCombinatorialIterator
toList
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.redberry.combinatorics.CombinatorialIterator
iterator, stream
-
-
-
-
Field Detail
-
port
final IntCombinatorialPort port
-
next
private int[] next
-
-
Constructor Detail
-
Iterator
public Iterator(IntCombinatorialPort port)
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:CombinatorialIteratorResets the iteration
-
current
public int[] current()
Description copied from interface:CombinatorialIteratorReturns the reference on the current iteration element.- Returns:
- the reference on the current iteration element
-
hasNext
public boolean hasNext()
-
next
public int[] next()
-
-