Class MathUtils


  • public class MathUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean sumOverflows​(int a, int b)
      Returns whether the sum of the arguments overflows an int.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • sumOverflows

        public static boolean sumOverflows​(int a,
                                           int b)
        Returns whether the sum of the arguments overflows an int.
        Parameters:
        a - the first value
        b - the second value
        Returns:
        whether the sum of the arguments overflows an int