private void putAll(IRubyObject[] items) { for (IRubyObject item : items) { String string = getStringFromItem(item); set.add(string); } }
private void putAll(IRubyObject[] items) { for (IRubyObject item : items) { String string = getStringFromItem(item); set.add(string); } }
@Override public synchronized IRubyObject delete(ThreadContext context, IRubyObject item, Block block) { String string = getStringFromItem(item); IRubyObject result = super.delete(context, item, block); set.remove(string); return result; }
@Override public synchronized RubyArray append(IRubyObject item) { String string = getStringFromItem(item); RubyArray result = super.append(item); set.add(string); return result; }
@Override public synchronized RubyArray append(IRubyObject item) { String string = getStringFromItem(item); RubyArray result = super.append(item); set.add(string); return result; }
@Override public synchronized IRubyObject unshift(IRubyObject item) { String string = getStringFromItem(item); IRubyObject result = super.unshift(item); set.add(string); return result; }
@Override public synchronized IRubyObject unshift(IRubyObject item) { String string = getStringFromItem(item); IRubyObject result = super.unshift(item); set.add(string); return result; }
@Override public synchronized IRubyObject delete(ThreadContext context, IRubyObject item, Block block) { String string = getStringFromItem(item); IRubyObject result = super.delete(context, item, block); set.remove(string); return result; }
@Override public synchronized RubyBoolean include_p(ThreadContext context, IRubyObject item) { return context.runtime.newBoolean(set.contains(getStringFromItem(item))); }
@Override public synchronized RubyBoolean include_p(ThreadContext context, IRubyObject item) { return context.runtime.newBoolean(set.contains(getStringFromItem(item))); }