Class RangeTreeNode<K extends Comparable<K>, V>

java.lang.Object
org.aksw.commons.util.range.RangeTreeNode<K,V>
Type Parameters:
K -
V -

public class RangeTreeNode<K extends Comparable<K>, V> extends Object
Data structure to build a tree from incremental additions of (range, value) pairs.
  • Field Details

  • Constructor Details

    • RangeTreeNode

      public RangeTreeNode(com.google.common.collect.Range<K> nodeRange)
    • RangeTreeNode

      public RangeTreeNode(com.google.common.collect.Range<K> nodeRange, V value)
    • RangeTreeNode

      public RangeTreeNode(com.google.common.collect.Range<K> nodeRange, Collection<V> values)
  • Method Details

    • newRoot

      public static <K extends Comparable<K>, V> RangeTreeNode<K,V> newRoot()
    • getValues

      public Collection<V> getValues()
    • getChildren

      public com.google.common.collect.RangeMap<K, RangeTreeNode<K,V>> getChildren()
    • getChildNodes

      public Collection<RangeTreeNode<K,V>> getChildNodes()
    • streamAllValuesPreOrder

      public Stream<V> streamAllValuesPreOrder()
      Return all values of this node and all of its children - depth first pre order
    • put

      public void put(com.google.common.collect.Range<K> insertRange, V value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • print

      public void print(PrintStream out, String indent)
    • main

      public static void main(String[] args)