Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top