List of utility methods to do Iterable to List
List | toList(Iterable Copies the elements of Iterable into a list and returns them. List<E> list = new ArrayList<E>(); for (E item : iter) { list.add(item); return list; |
List | toList(Iterable to List return values instanceof List ? (List<R>) values : copyToList(values); |
List | toList(Iterable to List return toList(DEFAULT_LIST_SIZE, protocols);
|
List | toList(Iterable to List List<T2> result = new LinkedList<T2>(); for (T1 element : elements) { result.add(element); return result; |
java.util.ArrayList | ToList(Iterable To List java.util.ArrayList<T> outList = new java.util.ArrayList<T>(); for (T item : inList) { outList.add(item); return outList; |
ArrayList | toList(Iterable to List if (it instanceof ArrayList) return (ArrayList) it; ArrayList<T> list = new ArrayList<T>(); for (T x : it) list.add(x); return list; |
List | toList(Iterable Create a list out of the items in the Iterable. List<T> list = new ArrayList<>(); addAll(list, items); return list; |
List | toList(Iterable Returns a list with a copy of the data from the iterable. List<T> buf = new ArrayList<>(); for (T v : iter) { buf.add(v); return buf; |
List | toList(Iterable to List if (null == iterable) return Collections.emptyList(); List<T> retList = new LinkedList<>(); for (T item : iterable) { retList.add(item); return retList; |
List | toList(Iterable Convert an iterable to a list. List<T> list = new ArrayList<>(); if (iterable instanceof Collection) { list.addAll((Collection<T>) iterable); } else { for (T next : iterable) { list.add(next); return list; |