@Test public void testGetNames() { GraphName name1 = GraphName.of("/foo/bar/baz"); server.set(name1, "bloop"); GraphName name2 = GraphName.of("/testing"); server.set(name2, "123"); Collection<GraphName> names = server.getNames(); assertEquals(2, names.size()); assertTrue(names.contains(name1)); assertTrue(names.contains(name2)); }
public Collection<GraphName> getNames() { Set<GraphName> names = Sets.newHashSet(); return getSubtreeNames(GraphName.root(), tree, names); }
ParameterServer { public Collection<GraphName> getNames() { Set<GraphName> names = Sets.newHashSet(); return getSubtreeNames(GraphName.root(), tree, names); } }
ParameterServer { public Collection<GraphName> getNames() { Set<GraphName> names = Sets.newHashSet(); return getSubtreeNames(GraphName.root(), tree, names); } ParameterServer(); }
ParameterServer { public Collection<GraphName> getNames() { Set<GraphName> names = Sets.newHashSet(); return getSubtreeNames(GraphName.root(), tree, names); } ParameterServer(); void subscribe(GraphName name, NodeIdentifier nodeIdentifier); @SuppressWarnings("unchecked") Object get(GraphName name); void set(final GraphName name, final boolean value); void set(final GraphName name, final int value); void set(final GraphName name, final double value); void set(final GraphName name, final String value); void set(final GraphName name, final List<?> value); void set(final GraphName name, final Map<?, ?> value); @SuppressWarnings("unchecked") void delete(GraphName name); Object search(GraphName namespace, GraphName name); @SuppressWarnings("unchecked") boolean has(GraphName name); Collection<GraphName> getNames(); }
ParameterServer { public Collection<GraphName> getNames() { Set<GraphName> names = Sets.newHashSet(); return getSubtreeNames(GraphName.root(), tree, names); } ParameterServer(); void subscribe(GraphName name, NodeIdentifier nodeIdentifier); @SuppressWarnings("unchecked") Object get(GraphName name); void set(final GraphName name, final boolean value); void set(final GraphName name, final int value); void set(final GraphName name, final double value); void set(final GraphName name, final String value); void set(final GraphName name, final List<?> value); void set(final GraphName name, final Map<?, ?> value); @SuppressWarnings("unchecked") void delete(GraphName name); Object search(GraphName namespace, GraphName name); @SuppressWarnings("unchecked") boolean has(GraphName name); Collection<GraphName> getNames();  }