Class: Java::JavaUtil::TreeSet

Inherits:
Object
  • Object
show all
Defined in:
lib/jinx/import/java.rb

Instance Method Summary collapse

Instance Method Details

#base__firstObject (private)



112
# File 'lib/jinx/import/java.rb', line 112

alias :base__first :first

#firstObject

Fixes the jRuby #first to return nil on an empty set rather than raise a Java exception.



115
116
117
# File 'lib/jinx/import/java.rb', line 115

def first
  empty? ? nil : base__first
end