Module: Java::JavaUtil::List

Defined in:
lib/jinx/import/java.rb

Overview

Aliases Java List methods with the standard Ruby Array counterpart, e.g. merge for addAll.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

Returns whether this List has the same content as the other Java List or Ruby Array.



50
51
52
# File 'lib/jinx/import/java.rb', line 50

def ==(other)
  Array === other ? to_a == other : equals(other)
end

#delete(item) ⇒ Object

Removes the given item from this collection.



55
56
57
# File 'lib/jinx/import/java.rb', line 55

def delete(item)
  remove(item)
end