|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<List<E>>
net.sf.molae.pipe.cube.CartesianCollection<E>
public final class CartesianCollection<E>
The cartesian product of collections.
| Constructor Summary | |
|---|---|
CartesianCollection(List<Collection<? extends E>> factors)
Constructs a cartesian product from the specified factors. |
|
| Method Summary | |
|---|---|
boolean |
contains(Object o)
Returns true if this collection contains the specified
element. |
boolean |
equals(Object o)
Compares the specified object with this collection for equality. |
List<Collection<? extends E>> |
getFactors()
Returns the factors of this cartesian collection. |
int |
hashCode()
Returns the hash code value for this collection. |
Iterator<List<E>> |
iterator()
Returns a lexicographical iterator over the elements in this collection. |
int |
size()
Returns the number of elements in this collection. |
String |
toString()
Returns a suitable representation of the factor list. |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CartesianCollection(List<Collection<? extends E>> factors)
factors - list of the factors of this cartesian product.
NullPointerException - if the specified list is
null
or one of the elements in the factor list is null.
ClassCastException - if any factor is not a
Collection.| Method Detail |
|---|
public List<Collection<? extends E>> getFactors()
public boolean equals(Object o)
equals in interface Collection<List<E>>equals in class Objecto - the reference object with which to compare.
true if the specified Object is equal to this
collection.public int hashCode()
hashCode in interface Collection<List<E>>hashCode in class Objectpublic String toString()
toString in class AbstractCollection<List<E>>public Iterator<List<E>> iterator()
iterator in interface Iterable<List<E>>iterator in interface Collection<List<E>>iterator in class AbstractCollection<List<E>>public int size()
size in interface Collection<List<E>>size in class AbstractCollection<List<E>>public boolean contains(Object o)
true if this collection contains the specified
element.
This is the case, iff for each element of the specified collection
the corresponding factor collection contains the element.
contains in interface Collection<List<E>>contains in class AbstractCollection<List<E>>o - expected to be a collection
true if this collection contains the specified
element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||