MathHelper.decrementExact

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

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

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

Meta