de.caff.generics.util.combi

## Class Permutations.RangeIterator

- java.lang.Object
- - de.caff.generics.util.combi.Permutations.RangeIterator

- All Implemented Interfaces:
    java.util.Iterator<IntIndexable>
  Enclosing class:
    Permutations<T>

      public static class Permutations.RangeIterator
      extends java.lang.Object
      implements java.util.Iterator<IntIndexable>

  Iterator using the Steinhaus-Johnson-Trotter algorithm for an index range. All other permutation iterators can make use of this.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RangeIterator(int numElements)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()`
    `IntIndexable` | `next()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Iterator

      `forEachRemaining, remove`

- - ### Constructor Detail

    - #### RangeIterator

          public RangeIterator(int numElements)

      Constructor.
      Parameters:
        `numElements` - number of elements

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `java.util.Iterator<IntIndexable>`

    - #### next

          public IntIndexable next()

      Specified by:
        `next` in interface `java.util.Iterator<IntIndexable>`