@Test public void remove() { PropFile systemProps = new PropFile(Context.named("context"), Loc.System); assertNull(systemProps.remove("test")); PropFile.Prop testProp = systemProps.add("test", "value"); assertSame(testProp, systemProps.remove("test")); assertNull(systemProps.remove("test")); PropFile localProps = new PropFile(Context.named("context"), Scope.Default, Loc.Local); assertNull(localProps.remove("test")); systemProps.add("test", "value"); assertFalse(localProps.contains("test")); assertNull(localProps.remove("test")); assertFalse(localProps.contains("test")); testProp = localProps.add("test", "diff"); assertSame(testProp, localProps.remove("test")); assertFalse(localProps.contains("test")); }
public final Prop remove(String name) { return delegate.remove(name); }
PropFile { public final Prop remove(String name) { return delegate.remove(name); } }
PropFile { public final Prop remove(String name) { return delegate.remove(name); } 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 remove(String name) { return delegate.remove(name); } 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 remove(String name) { return delegate.remove(name); } 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; }