I have two lists:
List<Integer> partnerIdList;
List<Integer> platformIdList;
I need to get a Cartesian product of those list as follows:
List<Pair<Integer, Integer> > partnerPlatformPairList;
Where Pair
is a class from the org.apache.commons.lang3.tuple.Pair
package.
How can I easily do that? Is there some in the apache-commons library?