com.cloudera.crunch.util
Class Collects

java.lang.Object
  extended by com.cloudera.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
clone, equals, finalize, 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. All Rights Reserved.