MathHelper.decrementExact

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

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

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

Meta