code: public Integer getInteger (int index) {
          Long value = getLong (index);
          return (value != null) ? value.intValue () : null;
      }
docs: Retrieve an indexed element and return it as an Integer.
  
  @param index An integer value specifying the offset from the beginning of the array.
  @return The element as an Integer, or null if the element is not found.