Package cc.redberry.combinatorics
Interface IntCombinatorialPort
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
IntCompositions,IntDistinctTuples,IntPermutationsWithPriority,IntTuples
This interface is common for all combinatorial iterators.
- Since:
- 1.0
-
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
-