public interface Lists
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
copy(List<T> list)
Create a new List being a copy of the one provided.
|
static List<Float> |
fromFloat(float... values)
Build a new List with NoNullArrayList implementation and set a collection
of objects inside.
|
static List<Integer> |
fromInts(int... values)
Build a new List with NoNullArrayList implementation and set a collection
of objects inside.
|
static <T> List<T> |
newList()
Build a new List with NoNullArrayList implementation.
|
static <T> List<T> |
newList(Collection<T> c) |
static <T> List<T> |
newList(int size)
Build a new List with NoNullArrayList implementation and a given size.
|
static <T> List<T> |
newList(T... t)
Build a new List with NoNullArrayList implementation and set a collection
of objects inside.
|
static <T> List<T> |
newSingleElementList(T o) |
static List<Float> fromFloat(float... values)
values - Collection of objects placed in the list.static <T> List<T> newList()
T - Contained objects type.static List<Integer> fromInts(int... values)
values - Collection of objects placed in the list.static <T> List<T> newList(int size)
T - Contained objects type.size - List initial size.@SafeVarargs static <T> List<T> newList(T... t)
T - Contained objects type.t - Collection of objects placed in the list.static <T> List<T> newList(Collection<T> c)
static <T> List<T> copy(List<T> list)
T - Type contained in the list.list - List to copy.static <T> List<T> newSingleElementList(T o)
Copyright © 2017. All rights reserved.