Pow2LengthBitSetRangeFactory implements Function<MapNode<BitVector, V>, Map<Pow2LengthBitSetRange, NodeValue<V>>> { public static <V> Pow2LengthBitSetRangeFactory<V> create(List<Integer> elementLengths) { return new Pow2LengthBitSetRangeFactory<V>(elementLengths); } private  Pow2LengthBitSetRangeFactory(List<Integer> cardinality); static Pow2LengthBitSetRangeFactory<V> create(List<Integer> elementLengths); @Override Map<Pow2LengthBitSetRange, NodeValue<V>> apply(MapNode<BitVector, V> from); @Override String toString();  }
@Test public void noDimensions() { Pow2LengthBitSetRangeFactory<String> range = Pow2LengthBitSetRangeFactory.create(ImmutableList.<Integer>of()); checkSingleElement(range, 0); }
@Test public void oneDimensionAndRootNodeOnly() { for (int i = 0; i < 5; ++i) { Pow2LengthBitSetRangeFactory<String> range = Pow2LengthBitSetRangeFactory.create(ImmutableList.<Integer>of(i)); checkSingleElement(range, i); } }