Class GPermutations<TItem>
java.lang.Object
com.glitchybyte.glib.combinatorics.GSequencesGenerator<GCodedPermutations,TItem>
com.glitchybyte.glib.combinatorics.GPermutations<TItem>
- Type Parameters:
TItem- Type of item.
Generates permutations of the given items.
(Order of items do matter.)
-
Constructor Summary
ConstructorsConstructorDescriptionGPermutations(TItem[] items, boolean allowDuplicateItems) Creates a sequences generator with the given characteristics.GPermutations(TItem[] items, boolean allowDuplicateItems, int minSize, int maxSize) Creates a sequences generator with the given characteristics. -
Method Summary
Methods inherited from class com.glitchybyte.glib.combinatorics.GSequencesGenerator
iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GPermutations
Creates a sequences generator with the given characteristics.- Parameters:
items- Items for the generator.allowDuplicateItems-trueif a sequence can use the same item more than once.minSize- Minimum size of a sequence.maxSize- Maximum size of a sequence.
-
GPermutations
Creates a sequences generator with the given characteristics.- Parameters:
items- Items for the generator.allowDuplicateItems-trueif a sequence can use the same item more than once.
-