Class AlwaysStrategy

java.lang.Object
org.aoju.bus.validate.strategy.AlwaysStrategy
All Implemented Interfaces:
Matcher

public final class AlwaysStrategy extends Object implements Matcher
这个校验器的结果永远为true
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • AlwaysStrategy

      public AlwaysStrategy()
  • Method Details

    • on

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