Package cc.redberry.combinatorics
Interface CombinatorialIterator<T>
- All Superinterfaces:
Iterable<T>,Iterator<T>,Serializable
- All Known Implementing Classes:
Combinatorics.TIterator,Combinatorics.TTIterator,IntCombinations,IntCombinationsWithPermutations,IntCombinatorialIterator,IntCombinatorialPort.Iterator,IntPermutations
Combinatorial iterator.
- Since:
- 1.0
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
reset
void reset()Resets the iteration -
current
T current()Returns the reference on the current iteration element.- Returns:
- the reference on the current iteration element
-
iterator
-
stream
Return a stream of combinations -
toList
Write all elements of this iterable to list
-