public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
arrayToList(T[] array)
Puts varargs in a mutable list.
|
static <T> T |
assertNotNull(T o) |
static <T> List<T> |
ensureNotNull(List<T> list) |
static String |
escapeEndOfLines(String string) |
static <E> boolean |
isNullOrEmpty(Collection<E> collection) |
static String |
readerToString(Reader reader) |
public static final String EOL
public static <E> boolean isNullOrEmpty(Collection<E> collection)
public static <T> T assertNotNull(T o)
public static String escapeEndOfLines(String string)
public static String readerToString(Reader reader) throws IOException
IOException
public static <T> List<T> arrayToList(T[] array)
Copyright © 2007–2017. All rights reserved.