org.aksw.commons.collections
Class CartesianProduct<T>
java.lang.Object
java.util.AbstractCollection<List<T>>
org.aksw.commons.collections.CartesianProduct<T>
- All Implemented Interfaces:
- Iterable<List<T>>, Collection<List<T>>
public class CartesianProduct<T>
- extends AbstractCollection<List<T>>
Created by IntelliJ IDEA.
User: raven
Date: 4/24/11
Time: 12:01 AM
To change this template use File | Settings | File Templates.
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
CartesianProduct
public CartesianProduct(List<? extends Iterable<? extends T>> collections)
create
public static <T> CartesianProduct<T> create(List<? extends Iterable<? extends T>> collections)
create
public static <T> CartesianProduct<T> create(Iterable<? extends Iterable<? extends T>> iterables)
create
public static <T> CartesianProduct<T> create(T[]... collections)
create
public static <T> CartesianProduct<T> create(Iterable<? extends T>... collections)
iterator
public Iterator<List<T>> iterator()
- Specified by:
iterator in interface Iterable<List<T>>- Specified by:
iterator in interface Collection<List<T>>- Specified by:
iterator in class AbstractCollection<List<T>>
size
public int size()
- Specified by:
size in interface Collection<List<T>>- Specified by:
size in class AbstractCollection<List<T>>
Copyright © 2011. All Rights Reserved.