@JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE) public IRubyObject pop_one(ThreadContext context) { IRubyObject ret = this.storage.last(); this.storage.remove(ret); return ret; }
@Override public T remove(int index) { Object oldObject = rubyBlockList.remove(index); if (oldObject == null) { return null; } else { return (T) NodeConverter.createASTNode(oldObject); } }
public boolean retainAll(Collection c) { boolean listChanged = false; for (Iterator iter = iterator(); iter.hasNext();) { Object element = iter.next(); if (!c.contains(element)) { remove(element); listChanged = true; } } return listChanged; }
@Override public T remove(int index) { Object oldObject = rubyBlockList.remove(index); if (oldObject == null) { return null; } else { return (T) NodeConverter.createASTNode(oldObject); } }
public boolean retainAll(Collection c) { boolean listChanged = false; for (Iterator iter = iterator(); iter.hasNext();) { Object element = iter.next(); if (!c.contains(element)) { remove(element); listChanged = true; } } return listChanged; }
public boolean retainAll(Collection c) { boolean listChanged = false; for (Iterator iter = iterator(); iter.hasNext();) { Object element = iter.next(); if (!c.contains(element)) { remove(element); listChanged = true; } } return listChanged; }
public boolean retainAll(Collection c) { boolean listChanged = false; for (Iterator iter = iterator(); iter.hasNext();) { Object element = iter.next(); if (!c.contains(element)) { remove(element); listChanged = true; } } return listChanged; }
@Override public boolean remove(Object o) { if (!RowImpl.class.isInstance(o)) { return false; } boolean changed = rubyArray.remove(((RowImpl) o).getRubyObject()); TableImpl.this.setAttribute("rowcount", size(), true); return changed; }
@Override public boolean remove(Object o) { if (!RowImpl.class.isInstance(o)) { return false; } boolean changed = rubyArray.remove(((RowImpl) o).getRubyObject()); TableImpl.this.setAttribute("rowcount", size(), true); return changed; }
@Override public Row remove(int index) { IRubyObject rubyObject = (IRubyObject) rubyArray.remove(index); TableImpl.this.setAttribute("rowcount", size(), true); return new RowImpl(rubyObject); }
@Override public Row remove(int index) { IRubyObject rubyObject = (IRubyObject) rubyArray.remove(index); TableImpl.this.setAttribute("rowcount", size(), true); return new RowImpl(rubyObject); }