List of utility methods to do List from
List | listOf(A... values) Returns a list of the comma-separated input values. return new LinkedList<A>(Arrays.asList(values)); |
List | listOf(A[] objs) list Of List<A> list = new ArrayList<A>(); for (A a : objs) list.add(a); return list; |
List | listOf(Class list Of return new ArrayList<>(); |
List | listOf(Collection list Of return new ArrayList<>(coll); |
List | listOf(Collection list Of return (List<T>) fillCollection(fillCollection(newList(), collection), elements);
|
List | listOf(Collection list Of List<T> res = new ArrayList<>(); for (Collection<T> t : elts) { res.addAll(t); return res; |
List | listOf(double... values) Returns a list of the comma-separated input values. return toList(values);
|
List | listOf(E... elements) list Of List<E> result = new ArrayList<>(elements.length); result.addAll(Arrays.asList(elements)); return result; |
List | listOf(E... elements) Create a List of E and add elements to the List . List<E> list = new ArrayList<>(); Collections.addAll(list, elements); return list; |
List | listOf(Iterable Returns a list form the the specified Iterable . if (it instanceof List) { return (List<T>) it; final List<T> result = new LinkedList<T>(); for (final T t : it) { result.add(t); return result; ... |