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