This project has retired. For details please refer to its Attic page.
Collects (Apache Crunch 0.3.0-incubating API)

org.apache.crunch.util
Class Collects

java.lang.Object
  extended by org.apache.crunch.util.Collects

public class Collects
extends Object

Utility functions for returning Collection objects backed by different types of implementations.


Method Summary
static
<T> Collection<T>
newArrayList()
           
static
<T> Collection<T>
newArrayList(Iterable<? extends T> elements)
           
static
<T> Collection<T>
newArrayList(Iterator<? extends T> elements)
           
static
<T> Collection<T>
newArrayList(T... elements)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newArrayList

public static <T> Collection<T> newArrayList()

newArrayList

public static <T> Collection<T> newArrayList(T... elements)

newArrayList

public static <T> Collection<T> newArrayList(Iterable<? extends T> elements)

newArrayList

public static <T> Collection<T> newArrayList(Iterator<? extends T> elements)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.