| java.lang.Object com.bm.ejb3guice.internal.Objects
Objects | public class Objects (Code) | | Object utilities.
author: crazybob@google.com (Bob Lee) |
Method Summary | |
public 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. | public static boolean | equal(Object a, Object b) null -aware equals. | public static T | nonNull(T t, String message) Detects null values. |
assertNoNulls | public static void assertNoNulls(Object[] objects)(Code) | | We use this as a sanity check immediately before injecting into a method
or constructor, to make sure we aren't supplying a null. This should never
happen because we should have caught the problem earlier. Perhaps this
should be used with Java asserts...
|
nonNull | public static T nonNull(T t, String message)(Code) | | Detects null values.
Parameters: t - value Parameters: message - to display in the event of a null t |
|
|