Interface NullCheck


public interface NullCheck
The class NullCheck contains the utility methods for treatment of null values.
  • Method Details

    • copyNonNull

      static Boolean copyNonNull(Boolean value)
      The method copyNonNull provides means to create a copy without null values.
      Parameters:
      value - the input
      Returns:
      a shallow copy
    • copyNonNull

      static Date copyNonNull(Date value)
      The method copyNonNull provides means to create a copy without null values.
      Parameters:
      value - the input
      Returns:
      a shallow copy
    • copyNonNull

      static Long copyNonNull(Long value)
      The method copyNonNull provides means to create a copy without null values.
      Parameters:
      value - the input
      Returns:
      a shallow copy
    • copyNonNull

      static String copyNonNull(String value)
      The method copyNonNull provides means to create a copy without null values.
      Parameters:
      value - the input
      Returns:
      a shallow copy
    • copyNonNull

      The method copyNonNull provides means to create a copy without null values.
      Parameters:
      value - the input
      Returns:
      a shallow copy
    • copyNonNull

      static Upload copyNonNull(@NonNull @NonNull Upload up)
      The method copyNonNull provides means to create a shallow copy without null values.
      Parameters:
      up - the input
      Returns:
      a shallow copy
    • isNotNull

      static String isNotNull(String value, String msg)
      The method isNotNull provides means to check the value for null and throw a NullPointerException if the value is null.
      Parameters:
      value - the value
      msg - the name of the parameter
      Returns:
      the value
    • isNotNullObject

      static void isNotNullObject(Object value, String msg)
      The method isNotNullObject provides means to check the value for null and throw a NullPointerException if the value is null.
      Parameters:
      value - the value
      msg - the name of the parameter