net.ericaro.neoitertools.generators.combinatorics
Class PermutationNumber

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

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

A big number whose values are all the permutations.

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

Constructor Summary
PermutationNumber(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

PermutationNumber

public PermutationNumber(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.