public abstract class CollectionUtils
extends java.lang.Object
Collection.| 构造器和说明 |
|---|
CollectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> java.lang.Class<? extends T> |
detectElementType(java.lang.Iterable<T> iterable)
detect the type of iterable element,
use the type of first element.
|
static <T> java.lang.Class<? extends T> |
detectElementType(T[] array)
detect the type of array element.
|
public static <T> java.lang.Class<? extends T> detectElementType(java.lang.Iterable<T> iterable)
T - the type of iterable elementiterable - iterable must not be emptypublic static <T> java.lang.Class<? extends T> detectElementType(T[] array)
T - the type of array elementarray - array must not be empty