public final class Collections extends Object
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
isEmpty(Collection<T> values)
Check if collection is empty (
null or empty). |
static <T> String |
join(Collection<T> values,
String separator)
Join elements of collection to a final string.
|
static <T,U> List<U> |
map(List<T> inputs,
Mapper<T,U> mapper)
Map list of inputs to a new list of outputs.
|
static <T> int |
size(Collection<T> values)
Get size of collection.
|
public static <T> boolean isEmpty(Collection<T> values)
null
or empty).T
- Type of element in collection.values
- Collection of values.public static <T> int size(Collection<T> values)
T
- Type of element in collection.values
- Collection of values.public static <T> String join(Collection<T> values, String separator)
T
- Type of element in collection.values
- Collection of values.separator
- Separator, use to separate each elements.Copyright © 2016. All Rights Reserved.