See entire Stack Overflow Topic: Easy way to convert Iterable to Collection
3 4 5 6 7 8 | //... public static <T> List<T> convertToList( final Iterable<T> iterable) { return StreamSupport.stream(iterable.spliterator(), false ) .collect(Collectors.toList()); } //... |