class AdderTree
The root node of the adder tree. The “adder tree” is a simple add-only tree. Once the tree is build it can't be changed. Only new elements can be added. The tree's main functionality is defined in AdderTreeNode
.
- Author
-
Peter Kofler
Attributes
data[R]
parent[R]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
AdderTreeNode::new
# File lib/javaclass/adder_tree.rb, line 80 def initialize(data) super(data, nil) end
Public Instance Methods
level()
click to toggle source
# File lib/javaclass/adder_tree.rb, line 84 def level 0 end
root()
click to toggle source
# File lib/javaclass/adder_tree.rb, line 88 def root self end