net.ericaro.neoitertools.generators.combinatorics
Class SubListNumber

java.lang.Object
  extended by net.ericaro.neoitertools.generators.combinatorics.SubListNumber
All Implemented Interfaces:
Generator<int[]>

public class SubListNumber
extends java.lang.Object
implements Generator<int[]>

a big number that return all the permutation of all the subsets, therefore the name: sublist

Author:
eric
See Also:
SubListNumber's wiki page, neoitertools site

Constructor Summary
SubListNumber(int total, int size)
           
 
Method Summary
 int[] next()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubListNumber

public SubListNumber(int total,
                     int size)
Method Detail

next

public int[] next()
Specified by:
next in interface Generator<int[]>
Returns:
the next item in the sequence.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.