Package cc.redberry.combinatorics
Interface IntCombinatorialPort
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
IntCompositions,IntDistinctTuples,IntPermutationsWithPriority,IntTuples
public interface IntCombinatorialPort extends java.io.SerializableThis interface is common for all combinatorial iterators.- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIntCombinatorialPort.Iterator
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int[]getReference()Returns the reference to the current iteration elementvoidreset()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.- Returns:
- the next combination or null, if no more combinations exist
-
-