public final class InjectorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canInstantiate(Class<?> clazz) |
static void |
checkArgument(boolean expression,
String errorMessage) |
static <T> void |
checkNoNullValues(T... arr) |
static void |
checkNotNull(Object o) |
static void |
checkNotNull(Object o,
String errorMessage) |
static boolean |
containsNullValue(Object... arr)
Returns whether the given array contains a null value or not.
|
static <T> T |
firstNotNull(T obj1,
T obj2) |
static void |
rethrowException(Exception e) |
public static void checkNotNull(Object o)
@SafeVarargs public static <T> void checkNoNullValues(T... arr)
public static boolean containsNullValue(Object... arr)
arr - the array to processpublic static void checkArgument(boolean expression,
String errorMessage)
public static void rethrowException(Exception e) throws InjectorException
InjectorException@Nullable public static <T> T firstNotNull(T obj1, T obj2)
public static boolean canInstantiate(Class<?> clazz)
Copyright © 2017. All rights reserved.