/** * Creates a new immutable {@link PropertyValue}. * @return a new immutable {@link PropertyValue}, never {@code null}. */ public PropertyValue build(){ return new PropertyValue(this); }
/** * Creates a new PropertyValue without any metadata.. * @param key the key, not {@code null}. * @param value the value. * @param source the source, typically the name of the {@link PropertySource} * providing the value, not {@code null}. * @return a new property value instance, or {@code null}, * if the value passed is {@code null}.. */ public static PropertyValue of(String key, String value, String source) { if (value==null) { return null; } return new PropertyValue(key, value, source); }