Module: Java::JavaUtil::List
- Defined in:
- lib/caruby/import/java.rb
Overview
Aliases Java List methods with the standard Ruby Array counterpart, e.g. merge for addAll.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns whether this List has the same content as the other Java List or Ruby Array.
-
#delete(item) ⇒ Object
Removes the given item from this collection.
Instance Method Details
#==(other) ⇒ Object
Returns whether this List has the same content as the other Java List or Ruby Array.
91 92 93 |
# File 'lib/caruby/import/java.rb', line 91 def ==(other) Array === other ? to_a == other : equals(other) end |
#delete(item) ⇒ Object
Removes the given item from this collection.
96 97 98 |
# File 'lib/caruby/import/java.rb', line 96 def delete(item) remove(item) end |