public class Objects extends Object
Constructor and Description |
---|
Objects() |
Modifier and Type | Method and Description |
---|---|
static void |
assertNoNulls(Object[] objects)
We use this as a sanity check immediately before injecting into a method
or constructor, to make sure we aren't supplying a null.
|
static boolean |
equal(Object a,
Object b)
null -aware equals. |
static <T> T |
nonNull(T t,
String message)
Detects null values.
|
public static <T> T nonNull(T t, String message)
t
- valuemessage
- to display in the event of a nullpublic static void assertNoNulls(Object[] objects)
Copyright © 2013. All Rights Reserved.