public static < T > T checkNotNull ( T reference , String message , Object ... args ) { if ( reference == null ) { throw new IllegalArgumentException ( String . format ( message , args ) ) ; } return reference ; }
Check if the reference is not null . This differs from Guava that throws Illegal Argument Exception + message .