Class RegexStrategy

java.lang.Object
org.aoju.bus.validate.strategy.RegexStrategy
All Implemented Interfaces:
Matcher<String,Regex>

public class RegexStrategy extends Object implements Matcher<String,Regex>
正则匹配校验
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • RegexStrategy

      public RegexStrategy()
  • Method Details

    • on

      public boolean on(String object, Regex regexValidate, Context context)
      Description copied from interface: Matcher
      校验对象
      Specified by:
      on in interface Matcher<String,Regex>
      Parameters:
      object - 被校验的对象
      regexValidate - 被校验对象的注解
      context - 校验环境上下文
      Returns:
      校验结果, true:校验通过