@Test public void allPossibleExpansionsForRootOnly() { MapNode<Integer, String> root = MapNode.create("x", ImmutableMap.<Integer, MapNode<Integer, String>>of()); Assert.assertTrue(allPossibleExpansions(root, 0).isEmpty()); for (int i = 1; i < 3; ++i) { MoreAsserts.assertContentsAnyOrder(allPossibleExpansions(root, i), ImmutableList.of(root)); } }
public static <K, V extends AdditiveValue<V>> BoundedRollup<K, V> create( V emptyValue, int maxNodes) { return new BoundedRollup<K, V>(maxNodes); }
BoundedRollup implements StreamingRollup<K, V> { public static <K, V extends AdditiveValue<V>> BoundedRollup<K, V> create( V emptyValue, int maxNodes) { return new BoundedRollup<K, V>(maxNodes); } }
BoundedRollup implements StreamingRollup<K, V> { public static <K, V extends AdditiveValue<V>> BoundedRollup<K, V> create( V emptyValue, int maxNodes) { return new BoundedRollup<K, V>(maxNodes); } private  BoundedRollup(int maxNodes); }
BoundedRollup implements StreamingRollup<K, V> { public static <K, V extends AdditiveValue<V>> BoundedRollup<K, V> create( V emptyValue, int maxNodes) { return new BoundedRollup<K, V>(maxNodes); } private  BoundedRollup(int maxNodes); static BoundedRollup<K, V> create(
      V emptyValue, int maxNodes); @Override void feedRow(Iterator<K> leafPath, V v); @Override MapNode<K, V> finish(); @Override String toString(); }
BoundedRollup implements StreamingRollup<K, V> { public static <K, V extends AdditiveValue<V>> BoundedRollup<K, V> create( V emptyValue, int maxNodes) { return new BoundedRollup<K, V>(maxNodes); } private  BoundedRollup(int maxNodes); static BoundedRollup<K, V> create(
      V emptyValue, int maxNodes); @Override void feedRow(Iterator<K> leafPath, V v); @Override MapNode<K, V> finish(); @Override String toString();  }