コード例 #1
0
 public boolean matchesInetAddress(InetAddress otherSource) {
   try {
     return ipMatcher.matches(otherSource);
   } catch (IllegalArgumentException e) {
     return false;
   }
 }
コード例 #2
0
 @JsonProperty
 public void setPattern(String pattern) {
   this.pattern = pattern;
   ipMatcher = IPMatcher.builder().addPatternOrHost(pattern).build();
 }