Validate that the specified argument is not null; otherwise throwing an exception. Validate.notNull(myObject, "The object must not be null"); The message of the exception is "The validated object is null". @param The object type. @param object the object to ch
(final T object)
| 1040 | * @deprecated Use {@link Objects#requireNonNull(Object)}. |
| 1041 | */ |
| 1042 | @Deprecated |
| 1043 | public static <T> T notNull(final T object) { |
| 1044 | return notNull(object, DEFAULT_IS_NULL_EX_MESSAGE); |
| 1045 | } |
| 1046 | |
| 1047 | /** |
| 1048 | * Validate that the specified argument is not {@code null}; |