Method: Puppet::Graph::RbTreeMap#max_key

Defined in:
lib/puppet/graph/rb_tree_map.rb

#max_keyObject

Return the largest key in the map.

Complexity: O(log n)

map = Containers::TreeMap.new
map.push("MA", "Massachusetts")
map.push("GA", "Georgia")
map.max_key #=> "MA"


110
111
112
# File 'lib/puppet/graph/rb_tree_map.rb', line 110

def max_key
  @root.nil? ? nil : max_recursive(@root).key
end