org.aksw.commons.collections
Class CartesianProduct<T>

java.lang.Object
  extended by java.util.AbstractCollection<List<T>>
      extended by 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.


Constructor Summary
CartesianProduct(List<? extends Iterable<? extends T>> collections)
           
 
Method Summary
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()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

CartesianProduct

public CartesianProduct(List<? extends Iterable<? extends T>> collections)
Method Detail

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.