@Test public void set() { PropFile systemProps = new PropFile(Context.named("context"), Loc.System); PropFile.Prop testProp = systemProps.add("test", "value"); PropFile.Prop setProp = systemProps.set("test", "newvalue"); assertNotSame(testProp, setProp); assertEquals("newvalue", setProp.value()); PropFile.Prop gotten = systemProps.get("test"); assertSame(setProp, gotten); assertEquals("newvalue", gotten.value()); }
public final Prop set(String name, String value) { return delegate.set(name, value); }
PropFile { public final Prop set(String name, String value) { return delegate.set(name, value); } }
PropFile { public final Prop set(String name, String value) { return delegate.set(name, value); } PropFile(Context context, Loc loc);  PropFile(Context context, Scope scope, Loc loc); private  PropFile(Context context, Scope scope, Loc loc, Impl delegate); }
PropFile { public final Prop set(String name, String value) { return delegate.set(name, value); } PropFile(Context context, Loc loc);  PropFile(Context context, Scope scope, Loc loc); private  PropFile(Context context, Scope scope, Loc loc, Impl delegate); final Prop add(String name, String value); final Prop add(String name, String value, String comments); final Prop set(String name, String value); final boolean contains(String name); final Prop get(String name); final int size(); boolean isEmpty(); final Prop remove(String name); final Iterable<Prop> props(); @Override final boolean equals(Object o); @Override final int hashCode(); }
PropFile { public final Prop set(String name, String value) { return delegate.set(name, value); } PropFile(Context context, Loc loc);  PropFile(Context context, Scope scope, Loc loc); private  PropFile(Context context, Scope scope, Loc loc, Impl delegate); final Prop add(String name, String value); final Prop add(String name, String value, String comments); final Prop set(String name, String value); final boolean contains(String name); final Prop get(String name); final int size(); boolean isEmpty(); final Prop remove(String name); final Iterable<Prop> props(); @Override final boolean equals(Object o); @Override final int hashCode(); static final PropFile Empty; }