java.lang.Object
com.baomidou.mybatisplus.extension.api.Assert

@Deprecated
public class Assert
extends Object
已过时。
REST API 业务断言

参考:org.junit.Assert

从以下版本开始:
2018-06-05
作者:
hubin
  • 构造器详细资料

    • Assert

      protected Assert()
      已过时。
  • 方法详细资料

    • gtZero

      public static void gtZero​(Integer num, IErrorCode errorCode)
      已过时。
      大于O
    • geZero

      public static void geZero​(Integer num, IErrorCode errorCode)
      已过时。
      大于等于O
    • gt

      public static void gt​(Integer num1, Integer num2, IErrorCode errorCode)
      已过时。
      num1大于num2
    • ge

      public static void ge​(Integer num1, Integer num2, IErrorCode errorCode)
      已过时。
      num1大于等于num2
    • eq

      public static void eq​(Object obj1, Object obj2, IErrorCode errorCode)
      已过时。
      obj1 eq obj2
    • isTrue

      public static void isTrue​(boolean condition, IErrorCode errorCode)
      已过时。
    • isFalse

      public static void isFalse​(boolean condition, IErrorCode errorCode)
      已过时。
    • isNull

      public static void isNull​(IErrorCode errorCode, Object... conditions)
      已过时。
    • notNull

      public static void notNull​(IErrorCode errorCode, Object... conditions)
      已过时。
    • fail

      public static void fail​(IErrorCode errorCode)
      已过时。
      失败结果
      参数:
      errorCode - 异常错误码
    • fail

      public static void fail​(boolean condition, IErrorCode errorCode)
      已过时。
    • fail

      public static void fail​(String message)
      已过时。
    • fail

      public static void fail​(boolean condition, String message)
      已过时。
    • fail

      public static void fail​(String message, Object[] args, org.springframework.context.MessageSource messageSource)
      已过时。
      返回多语言异常消息
      参数:
      message - 多语言消息 KEY
      args - 多语言提示默认参数数组对象
      messageSource - 多语言资源对象
    • fail

      public static void fail​(boolean condition, String message, Object[] args, org.springframework.context.MessageSource messageSource)
      已过时。
    • fail

      public static void fail​(String message, org.springframework.context.MessageSource messageSource)
      已过时。
    • fail

      public static void fail​(boolean condition, String message, org.springframework.context.MessageSource messageSource)
      已过时。
    • notEmpty

      public static void notEmpty​(Object[] array, IErrorCode errorCode)
      已过时。
    • noNullElements

      public static void noNullElements​(Object[] array, IErrorCode errorCode)
      已过时。
    • notEmpty

      public static void notEmpty​(Collection<?> collection, IErrorCode errorCode)
      已过时。
    • notEmpty

      public static void notEmpty​(Map<?,​?> map, IErrorCode errorCode)
      已过时。
    • isInstanceOf

      public static void isInstanceOf​(Class<?> type, Object obj, IErrorCode errorCode)
      已过时。
    • isAssignable

      public static void isAssignable​(Class<?> superType, Class<?> subType, IErrorCode errorCode)
      已过时。