Class IPAddressStrategy

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

public class IPAddressStrategy extends Object implements Matcher<Object,IPAddress>
IP地址校验
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • IPAddressStrategy

      public IPAddressStrategy()
  • Method Details

    • on

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