public double optDouble ( int index ) { LazyNode token = getOptionalValueToken ( index ) ; if ( token == null ) return 0.0 ; if ( token . type == LazyNode . VALUE_NULL ) return 0.0 ; return token . getDoubleValue ( ) ; }
Returns the double value stored at the given index or 0 . 0 if there was no such value .