code: private void growToSize (int minCapacity) {
  		if (minCapacity < 0) // overflow
  			throw new GdxRuntimeException("Capacity upper limit exceeded.");
  		int oldCapacity = queue.length;
  		// Double size if small; else grow by 50%
  		int newCapacity = (int)((oldCapacity < 64) ? ((oldCapacity + 1) * CAPACITY_RATIO_HI) : (oldCapacity * CAPACITY_RATIO_LOW));
  		if (newCapacity < 0) // overflow
  			newCapacity = Integer.MAX_VALUE;
  		if (newCapacity < minCapacity) newCapacity = minCapacity;
  		Object[] newQueue = new Object[newCapacity];
  		System.arraycopy(queue, 0, newQueue, 0, size);
  		queue = newQueue;
  	}
docs: Increases the capacity of the array.
  
  @param minCapacity the desired minimum capacity