public void ifBound ( Consumer < ? super T > consumer ) { Assert . notNull ( consumer , "Consumer must not be null" ) ; if ( this . value != null ) { consumer . accept ( this . value ) ; } }
Invoke the specified consumer with the bound value or do nothing if no value has been bound .