public static < T > Optional < T > of ( final T optionalValue ) { //NOPMD checkNotNull ( optionalValue , "Optional value may not be null in method of" ) ; return new Optional < T > ( optionalValue ) ; }
Returns an Optional with the specified present non - null value .