MathHelper.toIntExact

Returns the value of the {@code long} argument; throwing an exception if the value overflows an {@code int}.

@param value the long value @return the argument as an int @throws ArithmeticException if the {@code argument} overflows an int

class MathHelper
static
int
toIntExact
(
long value
)

Meta