getAsLong method

int getAsLong()

Converts object value into a long or returns 0 if conversion is not possible.

Returns string value or 0 if conversion is not supported.

See getAsLongWithDefault

Implementation

int getAsLong() {
  return getAsLongWithDefault(0);
}