@Test public void testChild() { DiscreteResource r1 = Resources.discrete(D1).resource().child(P1); DiscreteResource sameAsR2 = Resources.discrete(D1, P1).resource(); assertThat(r1, is(sameAsR2)); }
@Override public DiscreteResource child(Object child) { checkArgument(!(child instanceof Class<?>)); return Resources.discrete(id.child(child)).resource(); }
DiscreteResource implements Resource { @Override public DiscreteResource child(Object child) { checkArgument(!(child instanceof Class<?>)); return Resources.discrete(id.child(child)).resource(); } }
DiscreteResource implements Resource { @Override public DiscreteResource child(Object child) { checkArgument(!(child instanceof Class<?>)); return Resources.discrete(id.child(child)).resource(); } DiscreteResource(DiscreteResourceId id);   DiscreteResource(); }
DiscreteResource implements Resource { @Override public DiscreteResource child(Object child) { checkArgument(!(child instanceof Class<?>)); return Resources.discrete(id.child(child)).resource(); } DiscreteResource(DiscreteResourceId id);   DiscreteResource(); @Override DiscreteResourceId id(); @Override String simpleTypeName(); @Override boolean isTypeOf(Class<?> type); @Override boolean isSubTypeOf(Class<?> ancestor); @Override Optional<T> valueAs(Class<T> type); @Override DiscreteResource child(Object child); @Override ContinuousResource child(Class<?> child, double value); @Override Optional<DiscreteResource> parent(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
DiscreteResource implements Resource { @Override public DiscreteResource child(Object child) { checkArgument(!(child instanceof Class<?>)); return Resources.discrete(id.child(child)).resource(); } DiscreteResource(DiscreteResourceId id);   DiscreteResource(); @Override DiscreteResourceId id(); @Override String simpleTypeName(); @Override boolean isTypeOf(Class<?> type); @Override boolean isSubTypeOf(Class<?> ancestor); @Override Optional<T> valueAs(Class<T> type); @Override DiscreteResource child(Object child); @Override ContinuousResource child(Class<?> child, double value); @Override Optional<DiscreteResource> parent(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }