com.espertech.esper.collection
Class NumberSetPermutationEnumeration
java.lang.Object
com.espertech.esper.collection.NumberSetPermutationEnumeration
- All Implemented Interfaces:
- java.util.Enumeration<int[]>
public class NumberSetPermutationEnumeration
- extends java.lang.Object
- implements java.util.Enumeration<int[]>
Based on the PermutationEnumeration
this enumeration provides, among a set of supplied integer
values, all permutations of order these values can come in, ie.
Example: {0, 2, 3} results in 6 enumeration values ending in {3, 2, 0}.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberSetPermutationEnumeration
public NumberSetPermutationEnumeration(int[] numberSet)
- Ctor.
- Parameters:
numberSet
- - set of integer numbers to permutate and provide each combination.
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration<int[]>
nextElement
public int[] nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration<int[]>