Class AdderTree
In: lib/javaclass/adder_tree.rb
Parent: AdderTreeNode

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

Methods

level   new   root  

Attributes

data  [R] 
parent  [R] 

Public Class methods

[Source]

# File lib/javaclass/adder_tree.rb, line 80
  def initialize(data)
    super(data, nil)
  end

Public Instance methods

[Source]

# File lib/javaclass/adder_tree.rb, line 84
  def level
    0
  end

[Source]

# File lib/javaclass/adder_tree.rb, line 88
  def root
    self
  end

[Validate]