V - value typepublic class Pow2LengthBitSetRangeFactory<V> extends Object implements com.google.common.base.Function<MapNode<BitVector,V>,Map<Pow2LengthBitSetRange,NodeValue<V>>>
MapNode tree into a Map which contains
as keys all paths from the root node to all nodes. The path from root to root
is empty and is present in the produced map iff the tree is not empty(i.e.,
its root is not null). The values in the map are pairs of the original tree
node's value and a flag indicating if the node is a leaf node.| Modifier and Type | Method and Description |
|---|---|
Map<Pow2LengthBitSetRange,NodeValue<V>> |
apply(MapNode<BitVector,V> from) |
static <V> Pow2LengthBitSetRangeFactory<V> |
create(List<Integer> elementLengths) |
String |
toString() |
public static <V> Pow2LengthBitSetRangeFactory<V> create(List<Integer> elementLengths)
Copyright © 2014. All Rights Reserved.