Enum Class Assert

java.lang.Object
java.lang.Enum<Assert>
xyz.raylab.support.exception.Assert
所有已实现的接口:
Serializable, Comparable<Assert>, Constable

public enum Assert extends Enum<Assert>
  • 枚举常量详细资料

    • DEFAULT

      public static final Assert DEFAULT
      限界上下文
    • DOMAIN

      public static final Assert DOMAIN
      领域
    • DOMAIN_VALIDATION

      public static final Assert DOMAIN_VALIDATION
      领域验证
    • APPLICATION

      public static final Assert APPLICATION
      用例
    • APPLICATION_VALIDATION

      public static final Assert APPLICATION_VALIDATION
      用例验证
  • 方法详细资料

    • values

      public static Assert[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Assert valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • isTrue

      public void isTrue(boolean expression, String message)
    • notNull

      public void notNull(Object object, String message)
    • hasText

      public void hasText(String text, String message)
    • notEmpty

      public void notEmpty(Collection<?> collection, String message)
    • notEmpty

      public void notEmpty(Map<?,?> map, String message)