![](/hapi-fhir/images/logos/raccoon-forwards.png)
Package ca.uhn.fhir.jpa.util
Class CartesianProductUtil
java.lang.Object
ca.uhn.fhir.jpa.util.CartesianProductUtil
Utility class for working with cartesian products - Use Guava's
Lists.cartesianProduct(List)
method
to actually calculate the product.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> int
calculateCartesianProductSize
(List<List<T>> theLists) Returns the size of the cartesian product
-
Method Details
-
calculateCartesianProductSize
public static <T> int calculateCartesianProductSize(List<List<T>> theLists) throws ArithmeticException Returns the size of the cartesian product- Throws:
ArithmeticException
- If size exceedsInteger.MAX_VALUE
- Since:
- 7.4.0
-