Class NullMath

java.lang.Object
com.aoapps.lang.math.NullMath

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

    • 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