Class: Java::JavaUtil::ArrayList

Inherits:
Object
  • Object
show all
Defined in:
lib/cuketagger/array_list_extension.rb

Instance Method Summary collapse

Instance Method Details

#index(obj) ⇒ Object



7
8
9
10
11
# File 'lib/cuketagger/array_list_extension.rb', line 7

def index(obj)
  idx = indexOf(obj)
  return if idx == -1
  idx
end