code: public int indexOf(T object) {
          synchronized (mLock) {
              if (mOriginalValues != null) {
                  return mOriginalValues.indexOf(object);
              } else {
                  return mObjects.indexOf(object);
              }
          }
      }
docs: check contains the object.
  
  @param object The object to remove.