Interface CombinatorialIterator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      T current()
      Returns the reference on the current iteration element.
      default java.util.Iterator<T> iterator()  
      void reset()
      Resets the iteration
      default java.util.stream.Stream<T> stream()
      Return a stream of combinations
      default java.util.List<T> toList()
      Write all elements of this iterable to list
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • 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:
        iterator in interface java.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