cc.redberry.core.combinatorics
Interface IntCombinatorialPort
-
- All Superinterfaces:
- OutputPort<int[]>
- All Known Implementing Classes:
- IntCombinationPermutationGenerator, IntCombinationsGenerator, IntDistinctTuplesPort, IntPermutationsGenerator, IntPriorityPermutationsGenerator, IntTuplesPort
public interface IntCombinatorialPort extends OutputPort<int[]>
This interface is common for all combinatorial iterators.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.redberry.core.utils.OutputPort
OutputPort.PortIterable<T>, OutputPort.PortIterator<T>, OutputPort.Singleton<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description int[]getReference()Returns the reference to the current iteration element.voidreset()Resets the iterationint[]take()Calculates and returns the next combination or null, if no more combinations exist.
-
-
-
Method Detail
-
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.- Specified by:
takein interfaceOutputPort<int[]>- Returns:
- the next combination or null, if no more combinations exist
-
-
DataMelt 3.0 © DataMelt by jWork.ORG