intValue method

int intValue()

The value of a NumericNode as an int, when it is one exactly; throws a JsonNodeException for a fraction (1.5), NaN, infinity and other nodes.

Implementation

int intValue() => throw _wrong('a number');