Interface IntCombinatorialPort

All Superinterfaces:
Serializable
All Known Implementing Classes:
IntCompositions, IntDistinctTuples, IntPermutationsWithPriority, IntTuples

public interface IntCombinatorialPort extends Serializable
This interface is common for all combinatorial iterators.
Since:
1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Returns the reference to the current iteration element
    void
    Resets the iteration
    int[]
    Calculates and returns the next combination or null, if no more combinations exist.
  • Method Details

    • reset

      void reset()
      Resets the iteration
    • getReference

      int[] getReference()
      Returns the reference to the current iteration element
      Returns:
      the reference to the current iteration element
    • take

      int[] take()
      Calculates and returns the next combination or null, if no more combinations exist.
      Returns:
      the next combination or null, if no more combinations exist