|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.util.Objects
public class Objects
Object utilities.
Constructor Summary | |
---|---|
Objects()
|
Method Summary | ||
---|---|---|
static void |
assertNoNulls(java.lang.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(java.lang.Object a,
java.lang.Object b)
null -aware equals. |
|
static
|
nonNull(T t,
java.lang.String message)
Detects null values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Objects()
Method Detail |
---|
public static <T> T nonNull(T t, java.lang.String message)
t
- valuemessage
- to display in the event of a null
public static boolean equal(java.lang.Object a, java.lang.Object b)
null
-aware equals.
public static void assertNoNulls(java.lang.Object[] objects)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |