public long optLong ( int index ) { LazyNode token = getOptionalValueToken ( index ) ; if ( token == null ) return 0l ; if ( token . type == LazyNode . VALUE_NULL ) return 0l ; return token . getLongValue ( ) ; }
Returns the long value stored at the given index or 0 if there was no such value .