Class NullMath


  • public final class NullMath
    extends Object
    Math routines that allow null.
    Author:
    AO Industries, Inc.
    • Method Detail

      • add

        public static Integer add​(Integer i1,
                                  Integer i2)
        Adds two integers together while allowing null.
        Returns:
        the sum or null when both arguments are null
      • sub

        public static Integer sub​(Integer i1,
                                  Integer i2)
        Subtractions one integers from another while allowing null.
        Returns:
        the difference or null when both arguments are null