Interface CombinatorialIterator<T>

All Superinterfaces:
Iterable<T>, Iterator<T>, Serializable
All Known Implementing Classes:
Combinatorics.TIterator, Combinatorics.TTIterator, IntCombinations, IntCombinationsWithPermutations, IntCombinatorialIterator, IntCombinatorialPort.Iterator, IntPermutations

public interface CombinatorialIterator<T> extends Iterator<T>, Iterable<T>, Serializable
Combinatorial iterator.
Since:
1.0
  • 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

      default Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • stream

      default Stream<T> stream()
      Return a stream of combinations
    • toList

      default List<T> toList()
      Write all elements of this iterable to list