public class CollectionUtils extends Object
Constructor and Description |
---|
CollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
isNullOrEmpty(Collection<T> collection) |
static String |
join(Collection<String> toJoin,
String separator)
Joins a collection of strings with the given separator into a single string.
|
static <T> List<T> |
mergeLists(List<T> list1,
List<T> list2)
Returns a new list containing the second list appended to the first list.
|
public static <T> boolean isNullOrEmpty(Collection<T> collection)
public static <T> List<T> mergeLists(List<T> list1, List<T> list2)
public static String join(Collection<String> toJoin, String separator)
toJoin
- Collection containing items to join.separator
- String to join items with.Copyright © 2021. All rights reserved.