@Test public void contains() { PropFile systemProps = new PropFile(Context.named("context"), Loc.System); assertFalse(systemProps.contains("test")); systemProps.add("test", "value"); assertTrue(systemProps.contains("test")); PropFile localProps = new PropFile(Context.named("context"), Scope.Default, Loc.Local); assertFalse(localProps.contains("test")); PropFile adHocProps = new PropFile(Context.named("context"), Scope.Default, Loc.AdHoc); assertFalse(adHocProps.contains("test")); localProps.add("test", "different"); assertTrue(systemProps.contains("test")); assertEquals("value", systemProps.get("test").value()); assertTrue(localProps.contains("test")); assertEquals("different", localProps.get("test").value()); assertFalse(adHocProps.contains("test")); assertSame(PropFile.Prop.Empty, adHocProps.get("test")); }
public final boolean contains(String name) { return delegate.contains(name); }
PropFile { public final boolean contains(String name) { return delegate.contains(name); } }
PropFile { public final boolean contains(String name) { return delegate.contains(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 boolean contains(String name) { return delegate.contains(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 boolean contains(String name) { return delegate.contains(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; }