MathHelper.incrementExact

Returns the argument incremented by one, throwing an exception if the result overflows an {@code int}.

@param a the value to increment @return the result @throws ArithmeticException if the result overflows an int

  1. int incrementExact(int a)
    class MathHelper
    static
    int
    incrementExact
    (
    int a
    )
  2. long incrementExact(long a)

Meta