src/org/kocakosm/pitaya/collection/Iterables.java
public static <T> List<T> toList(Iterable<? extends T> iterable)
	{
		List<T> list = new ArrayList<T>();
		for (T e : iterable) {
			list.add(e);
		}
		return list;
	}
public static <T> List<T> toList(Iterable<? extends T> iterable)
	{
		List<T> list = new ArrayList<T>();
		for (T e : iterable) {
			list.add(e);
		}
		return list;
	}
Returns a {@code List} containing all the given {@code Iterable}'s
elements.

@param <T> the type of the returned {@code List}'s elements.
@param iterable the source {@code Iterable}.

@return the {@code List} created from the given {@code Iterable}.

@throws NullPointerException if {@code iterable} is {@code null}.