public Double getDouble(int index) {
        Number n = (Number) content.get(index);
        if (n == null) {
            return null;
        } else if (n instanceof Double) {
            return (Double) n;
        } else {
            return n.doubleValue(); //autoboxing to Double
        }
    }
public Double getDouble ( int index ) { Number n = ( Number ) content . get ( index ) ; if ( n == null ) { return null ; } else if ( n instanceof Double ) { return ( Double ) n ; } else { return n . doubleValue ( ) ; } }
Retrieves the value by the position in the {@link JsonArray} and casts it to {@link Double}.

Note that if value was stored as another numerical type, some truncation or rounding may occur.

@param index the index of the value.
@return the value at index.
@throws IndexOutOfBoundsException if the index is negative or too large.