1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| addExact(int x,int y){return the sum of its arguments, throwing an exception if the result overflows a int.
addExact(long x,long y){return the sum of its arguments, throwing an exception if the result overflows a long.
decrementExact(int a){return the argument decremented by one, throwing an exception if the result overflows an int.}
decrementExact(long a){return the argument decremented by one, throwing an exception if the result overflows an long.}
incrementExact(int a){return the argument incremented by one, throwing an exception if the result overflows an int.}
incrementExact(long a){return the argument incremented by one, throwing an exception if the result overflows a long.}
multiplytExact(int x, int y){return the product of the arguments, throwing an exception if the result overflows an int.}
multiplyExact(long x, long y){return the product of the arguments, throwing an exception if the result overflows a long.}
negateExact(int a){return the negation of the argument, throwing an exception if the result overflows an int.}
negateExact(long a){return the negation of the argument, throwing an exception if the result overflows a long.}
subtractExact(int x, int y){return the difference of the arguments, throwing an exception if the result overflows an int.}
subtractExact(long x, long y){return the difference of the arguments, throwing an exception if the result overflows a long.}
toIntExact(long value){return the value of the longargument; throwing an exception if the value overflows an int.}
|