Class PhoneStrategy

java.lang.Object
org.aoju.bus.validate.strategy.PhoneStrategy
All Implemented Interfaces:
Matcher<Object,Phone>

public class PhoneStrategy extends Object implements Matcher<Object,Phone>
固定电话校验
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • PhoneStrategy

      public PhoneStrategy()
  • Method Details

    • on

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