Do you know some neat Java libaries that allow you to make cartesian product of two (or more) sets?
For example: I have three sets. One with objects of class Person
Yes, there is Functional Java.
For a set (s):
s.bind(P.p2(), s);