class Immutable::SortedSet::AVLNode::Empty
@private
Public Class Methods
new(comparator)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1390 def initialize(comparator); @comparator = comparator; end
Public Instance Methods
at(index)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1400 def at(index); nil; end
between(from, to)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1416 def between(from, to); self; end
bulk_delete(items)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1410 def bulk_delete(items); self; end
bulk_insert(items)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1404 def bulk_insert(items) items = items.to_a if !items.is_a?(Array) items = items.sort(&@comparator) SortedSet.uniq_by_comparator!(items, @comparator) AVLNode.from_items(items, @comparator) end
delete(item)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1412 def delete(item); throw :not_present; end
drop(n)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1420 def drop(n); self; end
each()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1398 def each; end
each_between(item, inclusive)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1419 def each_between(item, inclusive); end
each_greater(item, inclusive)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1417 def each_greater(item, inclusive); end
each_less(item, inclusive)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1418 def each_less(item, inclusive); end
empty?()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1422 def empty?; true; end
height()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1394 def height; 0; end
include?(item)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1413 def include?(item); false; end
insert(item)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1401 def insert(item) AVLNode.new(item, @comparator, self, self) end
keep_only(items)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1411 def keep_only(items); self; end
left()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1392 def left; self; end
max()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1397 def max; nil; end
min()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1396 def min; nil; end
natural_order?()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1391 def natural_order?; false; end
prefix(item, inclusive)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1414 def prefix(item, inclusive); self; end
reverse_each()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1399 def reverse_each; end
right()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1393 def right; self; end
size()
click to toggle source
# File lib/immutable/sorted_set.rb, line 1395 def size; 0; end
slice(from, length)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1423 def slice(from, length); self; end
suffix(item, inclusive)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1415 def suffix(item, inclusive); self; end
take(n)
click to toggle source
# File lib/immutable/sorted_set.rb, line 1421 def take(n); self; end