public void add(int value) {
    throwIfImmutable();

    growIfNeeded();

    values[size++] = value;

    if (sorted && (size > 1)) {
      sorted = (value >= values[size - 2]);
    }
  }
Adds an element to the end of the list. This will increase the list's capacity if necessary.

@param value the value to add
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java