public static < T > OptionalValue < T > ofNullable ( ResourceKey key , T value ) { return new GenericOptionalValue < T > ( RUNTIME_SOURCE , key , value ) ; }
Returns new instance of OptionalValue with given key and value