Package org.fest.util
Class Lists
- java.lang.Object
-
- org.fest.util.Lists
-
public final class Lists extends java.lang.ObjectUtility methods related tojava.util.Lists.- Author:
- Yvonne Wang, Alex Ruiz, Joel Costigliola
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.ArrayList<T>newArrayList(java.lang.Iterable<? extends T> elements)Creates a mutableArrayListcontaining the given elements.static <T> java.util.ArrayList<T>newArrayList(T... elements)Creates a mutableArrayListcontaining the given elements.
-
-
-
Method Detail
-
newArrayList
public static <T> java.util.ArrayList<T> newArrayList(T... elements)
Creates a mutableArrayListcontaining the given elements.- Type Parameters:
T- the generic type of theArrayListto create.- Parameters:
elements- the elements to store in theArrayList.- Returns:
- the created
ArrayList, ofnullif the given array of elements isnull.
-
newArrayList
public static <T> java.util.ArrayList<T> newArrayList(java.lang.Iterable<? extends T> elements)
Creates a mutableArrayListcontaining the given elements.- Type Parameters:
T- the generic type of theArrayListto create.- Parameters:
elements- the elements to store in theArrayList.- Returns:
- the created
ArrayList, ofnullif the givenIterableisnull.
-
-