| Constructor and Description |
|---|
Iterables() |
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
toArray(Iterable<?> iterable)
Convert an Iterable into an array.
|
static <T> T[] |
toArray(Iterable<T> iterable,
Class<?> type)
Convert an Iterable into an array.
|
static <T> List<T> |
toList(Iterable<T> iterable)
Convert an Iterable into a list.
|
static String |
toString(Iterable<?> iterable)
Convert an {link java.lang.Iterable} to a String.
|
public static <T> List<T> toList(Iterable<T> iterable)
iterable - The iterable.public static Object[] toArray(Iterable<?> iterable)
iterable - The iterable.public static <T> T[] toArray(Iterable<T> iterable, Class<?> type)
iterable - The iterable.type - The component type of the array to create.Copyright © 2023. All rights reserved.