public boolean contains(int value) {
    return indexOf(value) >= 0;
  }
Returns whether or not the given value appears in the list. This will do a binary search if the
list is sorted or a linear search if not.

@param value value to look for
@return whether the list contains the given value
@see #sort
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java