views:

711

answers:

1

I'm interested in calculating permutations for parameters for something like this:

public class Movie() {

   @Selection(minimum=1,maximum=10)
   public Integer setLength() {}

   @Selection(minimum=1.1,maximum=5.5)
   public Double setCost() {}

}

So I can write something like List getPermutations(); so that I could get a list of every movie possible. I'm interested in supporting multiple data types.

Can anyone point me in the correct direction to take on building the annotation and List getPermutations() method?

+3  A: 

Here's an implementation of Donald Knuth's solution in C# that might be easy to port.

duffymo
I think this will be enough to get me started. thanks