com.espertech.esper.collection
Class NumberSetPermutationEnumeration

java.lang.Object
  extended by 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}.


Constructor Summary
NumberSetPermutationEnumeration(int[] numberSet)
          Ctor.
 
Method Summary
 boolean hasMoreElements()
           
 int[] nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberSetPermutationEnumeration

public NumberSetPermutationEnumeration(int[] numberSet)
Ctor.

Parameters:
numberSet - - set of integer numbers to permutate and provide each combination.
Method Detail

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[]>

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com