public class CollectionUtils extends Object
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
asSet(Collection<T> c) |
static <T> List<List<T>> |
chunk(Iterable<T> col,
int batchSize) |
static <S,T extends Iterable<S>> |
safeGetFirst(Iterable<T> iterable)
Given an iterable A whose elements are iterables, this method will return the first
element of A.
|
public static <S,T extends Iterable<S>> Iterable<S> safeGetFirst(Iterable<T> iterable)
S - T - iterable - public static <T> Set<T> asSet(Collection<T> c)
Copyright © 2015. All rights reserved.