Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }