@Test public void testTrieGetAll() { final Set<Elem> content = this.trie.getAll(); Assert.assertEquals(3, content.size()); Assert.assertTrue(content.contains(this.a)); Assert.assertTrue(content.contains(this.b)); Assert.assertTrue(content.contains(this.c)); }
public Set<T> getAll() { final Set<T> result = new HashSet<>(); for (final Node<T> node : this.roots.values()) { node.addAllTo(result); } return result; }
Trie { public Set<T> getAll() { final Set<T> result = new HashSet<>(); for (final Node<T> node : this.roots.values()) { node.addAllTo(result); } return result; } }
Trie { public Set<T> getAll() { final Set<T> result = new HashSet<>(); for (final Node<T> node : this.roots.values()) { node.addAllTo(result); } return result; } Trie(); }
Trie { public Set<T> getAll() { final Set<T> result = new HashSet<>(); for (final Node<T> node : this.roots.values()) { node.addAllTo(result); } return result; } Trie(); void insert(final T elem); Set<T> checkAll(final String aString); T check(final String aString); Set<T> getAll(); void clear(); }
Trie { public Set<T> getAll() { final Set<T> result = new HashSet<>(); for (final Node<T> node : this.roots.values()) { node.addAllTo(result); } return result; } Trie(); void insert(final T elem); Set<T> checkAll(final String aString); T check(final String aString); Set<T> getAll(); void clear();  }