@Test public void testPutWithCombineAtRoot() { PrefixTrieMultiMap<Integer> map = new PrefixTrieMultiMap<>(); assertThat(entriesPostOrder(map), empty()); Prefix l = Prefix.parse("127.0.0.0/8"); Prefix r = Prefix.parse("128.0.0.0/8"); map.put(l, 1); map.put(r, 2); assertThat( entriesPostOrder(map), contains( immutableEntry(l, ImmutableSet.of(1)), immutableEntry(r, ImmutableSet.of(2)), immutableEntry(Prefix.ZERO, ImmutableSet.of()))); }
public boolean put(Prefix p, T e) { return putAll(p, ImmutableList.of(e)); }
PrefixTrieMultiMap implements Serializable { public boolean put(Prefix p, T e) { return putAll(p, ImmutableList.of(e)); } }
PrefixTrieMultiMap implements Serializable { public boolean put(Prefix p, T e) { return putAll(p, ImmutableList.of(e)); } PrefixTrieMultiMap(Prefix prefix);  PrefixTrieMultiMap(); }
PrefixTrieMultiMap implements Serializable { public boolean put(Prefix p, T e) { return putAll(p, ImmutableList.of(e)); } PrefixTrieMultiMap(Prefix prefix);  PrefixTrieMultiMap(); void traverseEntries(BiConsumer<Prefix, Set<T>> consumer); R fold(FoldOperator<T, R> operator); @Override boolean equals(Object o); @Nonnull Set<T> get(Prefix p); @Nonnull Set<T> getAllElements(); @Override int hashCode(); @Nonnull Set<T> longestPrefixMatch(Ip address); @Nonnull Set<T> longestPrefixMatch(Ip address, int maxPrefixLength); boolean put(Prefix p, T e); boolean putAll(Prefix p, Collection<T> elements); boolean remove(Prefix p, T e); boolean replaceAll(Prefix p, T e); void clear(); }
PrefixTrieMultiMap implements Serializable { public boolean put(Prefix p, T e) { return putAll(p, ImmutableList.of(e)); } PrefixTrieMultiMap(Prefix prefix);  PrefixTrieMultiMap(); void traverseEntries(BiConsumer<Prefix, Set<T>> consumer); R fold(FoldOperator<T, R> operator); @Override boolean equals(Object o); @Nonnull Set<T> get(Prefix p); @Nonnull Set<T> getAllElements(); @Override int hashCode(); @Nonnull Set<T> longestPrefixMatch(Ip address); @Nonnull Set<T> longestPrefixMatch(Ip address, int maxPrefixLength); boolean put(Prefix p, T e); boolean putAll(Prefix p, Collection<T> elements); boolean remove(Prefix p, T e); boolean replaceAll(Prefix p, T e); void clear();  }