code: public int getInt(int index, int def) {
          Object tmp = mArray.get(index);
          return tmp != null && tmp instanceof Number ? ((Number) tmp).intValue()
                  : def;
      }
docs: get int value.
  
  @param index index.
  @param def   default value.
  @return value or default value.