Class PreconditionUtils

java.lang.Object
com.luna.common.check.PreconditionUtils

public class PreconditionUtils extends Object
Author:
Luna
  • Constructor Details

    • PreconditionUtils

      public PreconditionUtils()
  • Method Details

    • check

      public static void check(boolean expression, RuntimeException baseException)
      校验表达式是否正确
      Parameters:
      baseException - 异常
    • checkExpression

      public static void checkExpression(boolean expression, String msg)
    • checkNotNull

      public static <T> T checkNotNull(T reference, String errorMessage)
    • checkParamNotNull

      public static <T> T checkParamNotNull(T reference)