public class MiscUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
closeSilently(java.io.Closeable closeable) |
static java.lang.Throwable |
getCause(java.lang.Throwable t) |
static boolean |
isEmpty(java.lang.String string) |
static boolean |
isNonEmpty(byte[] array) |
static boolean |
isNonEmpty(java.util.Collection<?> collection) |
static boolean |
isNonEmpty(java.util.Map<?,?> map) |
static boolean |
isNonEmpty(java.lang.Object[] array) |
static boolean |
isNonEmpty(java.lang.String string) |
static <T> T |
withDefault(T value,
T def) |
public static boolean isNonEmpty(java.lang.String string)
public static boolean isEmpty(java.lang.String string)
public static boolean isNonEmpty(java.lang.Object[] array)
public static boolean isNonEmpty(byte[] array)
public static boolean isNonEmpty(java.util.Collection<?> collection)
public static boolean isNonEmpty(java.util.Map<?,?> map)
public static <T> T withDefault(T value, T def)
public static void closeSilently(java.io.Closeable closeable)
public static java.lang.Throwable getCause(java.lang.Throwable t)
Copyright © 2018. All Rights Reserved.