public static < E > E isNotNull ( E argument , String argName ) { if ( argument == null ) { throw new IllegalArgumentException ( format ( "argument '%s' can't be null" , argName ) ) ; } return argument ; }
Tests if a string is not null .