/** * Get the optional long value associated with an index. Zero is returned if * there is no value for the index, or if the value is not a number and cannot * be converted to a number. * * @param index The index must be between 0 and length() - 1. * @return The value. */ public long optLong(int index) { return optLong(index, 0); }