public class CartesianProduct<T> extends AbstractCollection<List<T>>
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends Iterable<? extends T>> |
collections |
protected boolean |
inPlace |
| Constructor and Description |
|---|
CartesianProduct(boolean inPlace,
List<? extends Iterable<? extends T>> collections) |
CartesianProduct(List<? extends Iterable<? extends T>> collections) |
| Modifier and Type | Method and Description |
|---|---|
static <T> CartesianProduct<T> |
create(Iterable<? extends Iterable<? extends T>> iterables) |
static <T> CartesianProduct<T> |
create(Iterable<? extends T>... collections) |
static <T> CartesianProduct<T> |
create(List<? extends Iterable<? extends T>> collections) |
static <T> CartesianProduct<T> |
create(T[]... collections) |
Iterator<List<T>> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic static <T> CartesianProduct<T> create(List<? extends Iterable<? extends T>> collections)
public static <T> CartesianProduct<T> create(Iterable<? extends Iterable<? extends T>> iterables)
public static <T> CartesianProduct<T> create(T[]... collections)
public static <T> CartesianProduct<T> create(Iterable<? extends T>... collections)
public int size()
size in interface Collection<List<T>>size in class AbstractCollection<List<T>>Copyright © 2018. All rights reserved.