@Test public void testToString() { ObjectValue ov1 = PropertyValue.createObject("foo"); String toString = ov1.toString(); assertThat(toString).isNotNull(); ov1.addList("list"); toString = ov1.toString(); assertThat(toString).isNotNull(); ov1.addObject("object"); toString = ov1.toString(); assertThat(toString).isNotNull(); ov1.setValue("valueKey", "value"); toString = ov1.toString(); assertThat(toString).isNotNull(); assertThat("Object{size='3', values='{valueKey=value}}").isEqualTo(toString); }
@Override public String toString() { return "Object{" + "size='" + getSize() + '\'' + ", values='" + toLocalMap() + (getMeta().isEmpty()?"":", metaData=" + getMeta()) + '}'; }
ObjectValue extends PropertyValue { @Override public String toString() { return "Object{" + "size='" + getSize() + '\'' + ", values='" + toLocalMap() + (getMeta().isEmpty()?"":", metaData=" + getMeta()) + '}'; } }
ObjectValue extends PropertyValue { @Override public String toString() { return "Object{" + "size='" + getSize() + '\'' + ", values='" + toLocalMap() + (getMeta().isEmpty()?"":", metaData=" + getMeta()) + '}'; } ObjectValue( String key); }
ObjectValue extends PropertyValue { @Override public String toString() { return "Object{" + "size='" + getSize() + '\'' + ", values='" + toLocalMap() + (getMeta().isEmpty()?"":", metaData=" + getMeta()) + '}'; } ObjectValue( String key); @Override ValueType getValueType(); Collection<PropertyValue> getValues(); Set<String> getKeys(); PropertyValue getPropertyValue(String name); String getValue(); @Override PropertyValue setValue(String value); String getValue(String key); T getOrSetValue(String name, Supplier<T> valueSupplier); @Override int getSize(); ObjectValue setValues(Map<String, String> config); ObjectValue setValues(Map<String, String> config, String source, boolean overwriteExisting); @Override ObjectValue toObjectValue(); @Override ListValue toListValue(); @Override Iterator<PropertyValue> iterator(); ObjectValue setValue(String k, String v); ListValue addList(String key); ObjectValue addObject(String key); PropertyValue setValueWithCompositeKey(String key, String value); Collection<PropertyValue> setValueWithCompositeKey(Map<String,String> values); @Override Map<String,String> toMap(); @Override Map<String,String> toLocalMap(); @Override ObjectValue mutable(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ObjectValue from(Collection<PropertyValue> values); }
ObjectValue extends PropertyValue { @Override public String toString() { return "Object{" + "size='" + getSize() + '\'' + ", values='" + toLocalMap() + (getMeta().isEmpty()?"":", metaData=" + getMeta()) + '}'; } ObjectValue( String key); @Override ValueType getValueType(); Collection<PropertyValue> getValues(); Set<String> getKeys(); PropertyValue getPropertyValue(String name); String getValue(); @Override PropertyValue setValue(String value); String getValue(String key); T getOrSetValue(String name, Supplier<T> valueSupplier); @Override int getSize(); ObjectValue setValues(Map<String, String> config); ObjectValue setValues(Map<String, String> config, String source, boolean overwriteExisting); @Override ObjectValue toObjectValue(); @Override ListValue toListValue(); @Override Iterator<PropertyValue> iterator(); ObjectValue setValue(String k, String v); ListValue addList(String key); ObjectValue addObject(String key); PropertyValue setValueWithCompositeKey(String key, String value); Collection<PropertyValue> setValueWithCompositeKey(Map<String,String> values); @Override Map<String,String> toMap(); @Override Map<String,String> toLocalMap(); @Override ObjectValue mutable(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static ObjectValue from(Collection<PropertyValue> values);  }