public class Iterables
extends java.lang.Object
| Constructor and Description |
|---|
Iterables() |
public static int size(java.lang.Iterable<?> iterable)
iterable.iterable - The IterableIterable sizepublic static <T> T[] toArray(java.lang.Iterable<? extends T> iterable,
java.lang.Class<T> type)
iterable - the iterable to copytype - the type of the elements