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