class Java::Util::ArrayList
Public Instance Methods
uniq()
click to toggle source
REMOVE when RubyMotion adds this
# File lib/project/ext/array_list.rb, line 4 def uniq if self.length <= 1 self else h = {} self.each do |el| h[el] = nil end h.keys end end
uniq!()
click to toggle source
REMOVE when RubyMotion adds this
# File lib/project/ext/array_list.rb, line 17 def uniq! # This was failing with an array of views, TODO, check out = self.uniq self.clear self.addAll out self end