Class IpMatcher

java.lang.Object
com.alibaba.cloud.commons.matcher.IpMatcher
All Implemented Interfaces:
Matcher

public class IpMatcher extends Object implements Matcher
Since:
2.2.10-RC1
Author:
musi,
  • Constructor Details

    • IpMatcher

      public IpMatcher()
    • IpMatcher

      public IpMatcher(int prefixLen, String ip)
  • Method Details

    • match

      public boolean match(Object object)
      Specified by:
      match in interface Matcher
    • getPrefixLen

      public int getPrefixLen()
    • getIp

      public String getIp()
    • setPrefixLen

      public void setPrefixLen(int prefixLen)
    • setIp

      public void setIp(String ip)