Equivalent to {@link #setString(String, String)
setString}{@code (key.name(), value)}.
If {@code key} is null, nothing is done.
174852
public void setString(Enum<?> key, String value)
    {
        if (key == null)
        {
            return;
        }

        setString(key.name(), value);
    }
1338876
private void set(String key, String... values) {
            String value = get(values);
            
            if (value != null) {
                put(getLabel(key), value);
            }
        }
1075622
public void setStrings(String name, String... values) {
		set(name, StringUtils.arrayToString(values));
	}
511873
public void setValue(String key, String value) {
        KeyValue kv = getKV(key);
        if (kv != null) {
            kv.setValue(value);
        } else if (key != null) {
            map.add(new KeyValue(key,value));
        }
    }
738651
public void setStringAttribute(String name, String value) {
		ensureAttributes();
		Attribute attribute = new StringAttribute(value);
		attribute.setEditable(isEditable(name));
		getAllAttributes().put(name, attribute);

	}
433545
public void setStringIfNotNull(@NotNull final String key, @Nullable final String value) {
        if (null != value) {
            setString(key, value);
        }
    }
675017
@Override
	public void setValue(StringValue value) {
		checkNotNull(value);
		setValue(value.value, 0, value.len);
	}
284121
public void setName(String name) {
		if (name == null) {
			throw new IllegalArgumentException("Field name cannot be null");
		}

		if (name.length() == 0 || name.length() > 10) {
			throw new IllegalArgumentException("Field name should be of length 0-10");
		}
		if (!DBFUtils.isPureAscii(name)) {
			throw new IllegalArgumentException("Field name must be ASCII");
		}
		this.name = name;
	}
508845
private void checkString(final String key, final String value, final String message) {

		if (StringUtils.isEmpty(value)) {

			logger.warn("{}", message);

		} else {

			logger.info("{}: {}", new Object[] { key, value } );
		}
	}
999763
public void update(final String key, final U value) {
    update(Util.stringToByteArray(key), value);
  }
1043240
public void put(String key, String value) {
		if (this.compiledStatement != null) {
			if (value==null) {
				this.compiledStatement.bindNull(compiledStatementBindIndex++);				
			} else {				
				compiledStatement.bindString(compiledStatementBindIndex++, (String) value);
			}
		} else if (values != null) {
			values.put(key, value);
			return;
		}

		names.add(key);
		// values.put(key, value);
		args.add(value);
		valueType.add(ParamType.STRING);
	}
1293109
public String getString(String key) {
        Object tmp = objectMap.get(key);
        return tmp == null ? null : tmp.toString();
    }
247060
protected void setStringValue(String input) {
        this.bValue = null;
        this.sValue = input;
        this.offset = 0;
        this.valueLength = (null == input) ? 0 : input.length();
        if (ELEM_ADDED != this.status) {
            this.status = ELEM_CHANGED;
        }
    }
265764
private void setString(String s) {
        _string.reset();
        _string.append(s);
        _length = s.length();
    }
934628
public void setString(String key, String value) {
        prefHelper_.prefsEditor_.putString(key, value);
        prefHelper_.prefsEditor_.apply();
    }
274792
public void setArrayIfNotEmpty(@NotNull final String key, @Nullable final String[] value) {
        if (null != value && value.length > 0) {
            setString(key, new Gson().toJson(value));
        }
    }
225373
public <T> void put(@NonNull String key, @NonNull T value) {
    Preconditions.checkNotNull(value, VALUE_IS_NULL);
    put(key, value, TypeToken.fromValue(value));
  }