Class TrueStrategy

java.lang.Object
org.aoju.bus.validate.strategy.TrueStrategy
All Implemented Interfaces:
Matcher<Boolean,True>

public class TrueStrategy extends Object implements Matcher<Boolean,True>
Boolean true 校验
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • TrueStrategy

      public TrueStrategy()
  • Method Details

    • on

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