Module inet.ipaddr

Class AssociativeAddedTree<E extends Address,V>

java.lang.Object
inet.ipaddr.format.util.AssociativeAddedTree<E,V>

public class AssociativeAddedTree<E extends Address,V> extends Object
AssociativeAddedTree is similar to AddedTree but originates from an AssociativeTrie. The nodes of this tree have the same values as the corresponding nodes in the original trie.
  • Constructor Details

    • AssociativeAddedTree

      public AssociativeAddedTree(AssociativeAddressTrie<E,inet.ipaddr.format.util.AssociativeAddressTrie.SubNodesMappingAssociative<E,V>> wrapped)
  • Method Details

    • getRoot

      Returns the root of this tree, which corresponds to the root of the originating trie.
    • toString

      public String toString()
      Returns a string representation of the tree, which is the same as the string obtained from the AddedNodesTreeString method of the originating trie.
      Overrides:
      toString in class Object