Java Utililty Methods List from

List of utility methods to do List from

Description

The list of methods to do List from are organized into topic(s).

Method

ListlistOf(A... values)
Returns a list of the comma-separated input values.
return new LinkedList<A>(Arrays.asList(values));
ListlistOf(A[] objs)
list Of
List<A> list = new ArrayList<A>();
for (A a : objs)
    list.add(a);
return list;
ListlistOf(Class type)
list Of
return new ArrayList<>();
ListlistOf(Collection coll)
list Of
return new ArrayList<>(coll);
ListlistOf(Collection collection, T... elements)
list Of
return (List<T>) fillCollection(fillCollection(newList(), collection), elements);
ListlistOf(Collection... elts)
list Of
List<T> res = new ArrayList<>();
for (Collection<T> t : elts) {
    res.addAll(t);
return res;
ListlistOf(double... values)
Returns a list of the comma-separated input values.
return toList(values);
ListlistOf(E... elements)
list Of
List<E> result = new ArrayList<>(elements.length);
result.addAll(Arrays.asList(elements));
return result;
ListlistOf(E... elements)
Create a List of E and add elements to the List .
List<E> list = new ArrayList<>();
Collections.addAll(list, elements);
return list;
ListlistOf(Iterable it)
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;
...