public class Cartesian
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Cartesian.GetList<T> |
(package private) static class |
Cartesian.Product<T> |
Constructor and Description |
---|
Cartesian() |
Modifier and Type | Method and Description |
---|---|
private static <T> java.lang.Iterable<java.util.List<T>> |
arraysAsLists(java.lang.Iterable<java.lang.Object[]> arrays) |
static <T> java.lang.Iterable<T[]> |
cartesianProduct(java.lang.Class<T> clazz,
java.lang.Iterable<? extends java.lang.Iterable<? extends T>> sets) |
static <T> java.lang.Iterable<java.util.List<T>> |
cartesianProduct(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> sets) |
private static <T> T[] |
createArray(java.lang.Class<? super T> elementType,
int length) |
private static <T> T[] |
toArray(java.lang.Class<? super T> clazz,
java.lang.Iterable<? extends T> it) |
public static <T> java.lang.Iterable<T[]> cartesianProduct(java.lang.Class<T> clazz, java.lang.Iterable<? extends java.lang.Iterable<? extends T>> sets)
public static <T> java.lang.Iterable<java.util.List<T>> cartesianProduct(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> sets)
private static <T> java.lang.Iterable<java.util.List<T>> arraysAsLists(java.lang.Iterable<java.lang.Object[]> arrays)
private static <T> T[] toArray(java.lang.Class<? super T> clazz, java.lang.Iterable<? extends T> it)
private static <T> T[] createArray(java.lang.Class<? super T> elementType, int length)