Package cc.redberry.combinatorics
Interface CombinatorialIterator<T>
-
- All Superinterfaces:
java.lang.Iterable<T>,java.util.Iterator<T>,java.io.Serializable
- All Known Implementing Classes:
Combinatorics.TIterator,Combinatorics.TTIterator,IntCombinations,IntCombinationsWithPermutations,IntCombinatorialIterator,IntCombinatorialPort.Iterator,IntPermutations
public interface CombinatorialIterator<T> extends java.util.Iterator<T>, java.lang.Iterable<T>, java.io.SerializableCombinatorial iterator.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tcurrent()Returns the reference on the current iteration element.default java.util.Iterator<T>iterator()voidreset()Resets the iterationdefault java.util.stream.Stream<T>stream()Return a stream of combinationsdefault java.util.List<T>toList()Write all elements of this iterable to list
-
-
-
Method Detail
-
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
default java.util.Iterator<T> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<T>
-
stream
default java.util.stream.Stream<T> stream()
Return a stream of combinations
-
toList
default java.util.List<T> toList()
Write all elements of this iterable to list
-
-