org.openanzo.util
Class Collections

java.lang.Object
  extended by org.openanzo.util.Collections

public class Collections
extends java.lang.Object

Set of collection utilities

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
Collections()
           
 
Method Summary
static
<T> java.util.Set<java.util.Collection<T>>
cartesianProduct(java.util.List<java.util.Collection<T>> collections)
          Create the cartesian product for a collection of collections
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

cartesianProduct

public static <T> java.util.Set<java.util.Collection<T>> cartesianProduct(java.util.List<java.util.Collection<T>> collections)
Create the cartesian product for a collection of collections

Type Parameters:
T - Type of objects in collection
Parameters:
collections - the list of collections whose cartesian product is being determined.
Returns:
a set of collections each of which is an element in the cartesian product of the given collections


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.