Class IntCompositions

    • Field Detail

      • integer

        private final int integer
      • nCompositions

        private final int nCompositions
      • array

        private int[] array
    • Constructor Detail

      • IntCompositions

        public IntCompositions​(int integer,
                               int nCompositions)
    • Method Detail

      • getReference

        public int[] getReference()
        Description copied from interface: IntCombinatorialPort
        Returns the reference to the current iteration element
        Specified by:
        getReference in interface IntCombinatorialPort
        Returns:
        the reference to the current iteration element
      • take

        public int[] take()
        Description copied from interface: IntCombinatorialPort
        Calculates and returns the next combination or null, if no more combinations exist.
        Specified by:
        take in interface IntCombinatorialPort
        Returns:
        the next combination or null, if no more combinations exist