public void setStringIfNotEmpty ( @ NotNull final String key , @ Nullable final String value ) { if ( null != value && ! value . isEmpty ( ) ) { setString ( key , value ) ; } }
Sets a property value only if the value is not null and not empty .