BigInteger.shortValueExact

Converts this {@code BigInteger} to a {@code short}, checking for lost information. If the value of this {@code BigInteger} is out of the range of the {@code short} type, then an {@code ArithmeticException} is thrown.

@return this {@code BigInteger} converted to a {@code short}. @throws ArithmeticException if the value of {@code this} will not exactly fit in a {@code short}. @see BigInteger#shortValue

class BigInteger
short
shortValueExact
()

Meta