@Test public void get() { PropFile propFile = new PropFile(Context.named("context"), Loc.System); assertSame(PropFile.Prop.Empty, propFile.get("test")); PropFile.Prop testProp = propFile.add("test", "value"); assertSame(testProp, propFile.get("test")); PropFile localTestScoped = new PropFile(Context.named("context"), Scope.named("test"), Loc.Local); PropFile.Prop testScopedProp = localTestScoped.add("test", "scoped-as-test"); assertSame(testScopedProp, localTestScoped.get("test")); assertSame(testProp, propFile.get("test")); PropFile adHocFile = new PropFile(Context.named("context"), Scope.Default, Loc.AdHoc); assertSame(PropFile.Prop.Empty, adHocFile.get("test")); PropFile.Prop adHocProp = adHocFile.add("test", "ad hoc value"); assertSame(adHocProp, adHocFile.get("test")); }
public final Prop get(String name) { return delegate.get(name); }
PropFile { public final Prop get(String name) { return delegate.get(name); } }
PropFile { public final Prop get(String name) { return delegate.get(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 get(String name) { return delegate.get(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 get(String name) { return delegate.get(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; }