Enum Class RegexPattern

java.lang.Object
java.lang.Enum<RegexPattern>
com.yuzhyn.azylee.core.datas.regexs.RegexPattern
所有已实现的接口:
Serializable, Comparable<RegexPattern>, Constable

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

    • GENERAL

      public static final RegexPattern GENERAL
      英文字母 、数字和下划线
    • POSITIVE_INTEGER

      public static final RegexPattern POSITIVE_INTEGER
      正整数
    • POSITIVE_FLOAT

      public static final RegexPattern POSITIVE_FLOAT
      正浮点数
    • POSITIVE_INTEGER_AND_ZERO

      public static final RegexPattern POSITIVE_INTEGER_AND_ZERO
      校验正整数和0(非负整数)
    • REAL_POSITIVE_INTEGER_AND_ZERO

      public static final RegexPattern REAL_POSITIVE_INTEGER_AND_ZERO
      校验正整数(含.0的小数)和0
    • POSITIVE_NUMBER_AND_ZERO

      public static final RegexPattern POSITIVE_NUMBER_AND_ZERO
      数字( 大于等于 0的数)
    • NUMBER

      public static final RegexPattern NUMBER
      校验数字
    • NONNEGATIVE_DECIMAL

      public static final RegexPattern NONNEGATIVE_DECIMAL
      大于0的数字
    • NONNEGATIVE_DECIMAL_ZERO

      public static final RegexPattern NONNEGATIVE_DECIMAL_ZERO
      大于等于0的数字
  • 方法详细资料

    • values

      public static RegexPattern[] 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 RegexPattern 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 - 如果参数为空值
    • getPattern

      public Pattern getPattern()
    • setPattern

      public void setPattern(Pattern pattern)
    • isMatch

      public boolean isMatch(CharSequence content)
    • main

      public static void main(String[] args)