Class MathUtils


  • public class MathUtils
    extends java.lang.Object
    Utility methods for math classes
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.math.BigDecimal getBigDecimal​(java.lang.Object value)  
      static java.math.BigInteger getBigInteger​(java.lang.Object value)  
      static boolean isAddOverflow​(long op1, long op2, long result)  
      • Methods inherited from class java.lang.Object

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

      • getBigDecimal

        public static java.math.BigDecimal getBigDecimal​(java.lang.Object value)
      • getBigInteger

        public static java.math.BigInteger getBigInteger​(java.lang.Object value)
      • isAddOverflow

        public static boolean isAddOverflow​(long op1,
                                            long op2,
                                            long result)