List of utility methods to do Iterable to List
List | toList(Iterable Converts the given Iterable into an ArrayList. if (iterable instanceof List) { return (List<T>) iterable; List<T> result = new ArrayList<>(); for (T item : iterable) { result.add(item); return result; ... |
List | toList(Iterable to List List<T> result = new ArrayList<T>(); for (T t : iterable) { result.add(t); return result; |
List | toList(Iterable to List List<T> answer = new ArrayList<T>(); for (T t : self) { answer.add(t); return answer; |