In my application I use 3rd party library (Spring Data for MongoDB to be exact).
Methods of this library return Iterable, while the rest of my
Iterable
Concise solution with Java 8 using java.util.stream:
public static List toList(final Iterable iterable) { return StreamSupport.stream(iterable.spliterator(), false) .collect(Collectors.toList()); }