public IntArrayList removeLast(int size) { if (size < 0 || this.size < size) { String msg = Messages.getIndexOutOfRange(0, size, this.size); throw new IndexOutOfBoundsException(msg); } return this.doRemoveLast(size); }
public IntArrayList set(int index, int value) { if (index < 0 || this.size() <= index) { String msg = Messages.getIndexOutOfRange(0, index, this.size()); throw new IndexOutOfBoundsException(msg); } return this.doSet(index, value); }