Android Utililty Methods Int Overflow Check

List of utility methods to do Int Overflow Check

Description

The list of methods to do Int Overflow Check are organized into topic(s).

Method

intaddAndCheck(int x, int y)
Add two integers, checking for overflow.
intconstrain(int value, int min, int max)
constrain
intmulAndCheck(int x, int y)
Multiply two integers, checking for overflow.
longstirlingS2(final int n, final int k)
Returns the Stirling number of the second kind, " S(n,k) ", the number of ways of partitioning an n -element set into k non-empty subsets.
intsubAndCheck(int x, int y)
Subtract two integers, checking for overflow.