public class NonNull extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
NonNull.Function<T> |
Constructor and Description |
---|
NonNull() |
Modifier and Type | Method and Description |
---|---|
static boolean |
empty(Object val) |
static <T> T |
nonNull(T o,
T defaultVal) |
static <T> T[] |
nonNullEntries(T[] o,
T[] defaultVal) |
<T> T |
suppressErrors(Class<T> returnType,
NonNull.Function<T> func) |
static <T> boolean |
with(Object o,
Class<T> type,
SuccessCallback<T> callback) |
static <T> boolean |
with(T o,
SuccessCallback<T> callback) |
public static <T> T nonNull(T o, T defaultVal)
public static <T> T[] nonNullEntries(T[] o, T[] defaultVal)
public static <T> boolean with(Object o, Class<T> type, SuccessCallback<T> callback)
public static <T> boolean with(T o, SuccessCallback<T> callback)
public static boolean empty(Object val)
public <T> T suppressErrors(Class<T> returnType, NonNull.Function<T> func)
Copyright © 2021. All Rights Reserved.