public class CommonUtils extends Object
| Constructor and Description |
|---|
CommonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable... closeables) |
static void |
copy(InputStream input,
OutputStream output) |
static <T> Collection<T> |
firstNonEmpty(Collection<T>... collections) |
static String |
fixPath(String path) |
static <T> boolean |
isEmpty(Collection<T> items) |
static boolean |
isEmpty(String value) |
static <T> boolean |
isEmpty(T[] items) |
public static <T> boolean isEmpty(T[] items)
public static <T> boolean isEmpty(Collection<T> items)
public static boolean isEmpty(String value)
public static void close(Closeable... closeables) throws IOException
IOExceptionpublic static <T> Collection<T> firstNonEmpty(Collection<T>... collections)
public static void copy(InputStream input, OutputStream output) throws IOException
IOExceptionCopyright © 2017 Anteros Tecnologia. All rights reserved.