|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.util.Lists
public final class Lists
Utility methods related to java.util.Lists.
| Method Summary | ||
|---|---|---|
static
|
emptyList()
|
|
static
|
newArrayList()
Creates a mutable ArrayList. |
|
static
|
newArrayList(Iterable<? extends T> elements)
Creates a mutable ArrayList containing the given elements. |
|
static
|
newArrayList(Iterator<? extends T> elements)
Creates a mutable ArrayList containing the given elements. |
|
static
|
newArrayList(T... elements)
Creates a mutable ArrayList containing the given elements. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> ArrayList<T> newArrayList(T... elements)
ArrayList containing the given elements.
T - the generic type of the ArrayList to create.elements - the elements to store in the ArrayList.
ArrayList, of null if the given array of elements is null.public static <T> ArrayList<T> newArrayList(Iterable<? extends T> elements)
ArrayList containing the given elements.
T - the generic type of the ArrayList to create.elements - the elements to store in the ArrayList.
ArrayList, or null if the given Iterable is null.public static <T> ArrayList<T> newArrayList(Iterator<? extends T> elements)
ArrayList containing the given elements.
T - the generic type of the ArrayList to create.elements - the elements to store in the ArrayList.
ArrayList, or null if the given Iterator is null.public static <T> ArrayList<T> newArrayList()
ArrayList.
T - the generic type of the ArrayList to create.
ArrayList, of null if the given array of elements is null.public static <T> List<T> emptyList()
List.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||