| Modifier and Type | Field and Description |
|---|---|
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Class | Returns: a new array with copies of the original array and additional itemsthe original array original, final Class<?>... items to be appended to the original array items)Creates a new array with copies of the original array and additional items appended to the end of it. |
| public static byte[] | Returns: the original array, or an empty array if it isnullthe specified array array)Returns the original array, or an empty array if it is |
| public static int[] | Returns: the original array, or an empty array if it isnullthe specified array array)Returns the original array, or an empty array if it is |
| public static < the class type T> T[] | Returns: the original array, or an empty array if it isnullthe specified array array, final Class<T[]> the type of the array type)Returns the original array, or an empty array if it is |
| public static void | |
| public static boolean | Returns: true if the CharSequence is empty or nullthe CharSequence to check, may be null cs)Checks if a CharSequence is empty ("") or null. |
| public static < the type of stream elements T> Stream | Returns: the new stream created byStream.of(values) or an empty
sequential stream created by Stream.empty() if values is null.the elements of the new stream values)Returns the new stream created by |
| debug | back to summary |
|---|---|
| private static boolean debug | |
| Utils | back to summary |
|---|---|
| public Utils() | |
| arraysAppend | back to summary |
|---|---|
| public static Class Creates a new array with copies of the original array and additional items appended to the end of it. | |
| createEmptyArrayIfNull | back to summary |
|---|---|
| public static byte[] createEmptyArrayIfNull(byte[] array) Returns the original array, or an empty array if it is
| |
| createEmptyArrayIfNull | back to summary |
|---|---|
| public static int[] createEmptyArrayIfNull(int[] array) Returns the original array, or an empty array if it is
| |
| createEmptyArrayIfNull | back to summary |
|---|---|
| public static <T> T[] createEmptyArrayIfNull(final T[] array, final Class<T[]> type) Returns the original array, or an empty array if it is
| |
| dPrint | back to summary |
|---|---|
| public static void dPrint(Supplier<String> msgGen) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(final CharSequence cs) Checks if a CharSequence is empty ("") or null.
| |
| streamOfIfNonNull | back to summary |
|---|---|
| public static <T> Stream Returns the new stream created by
| |