public boolean matchesInetAddress(InetAddress otherSource) { try { return ipMatcher.matches(otherSource); } catch (IllegalArgumentException e) { return false; } }
@JsonProperty public void setPattern(String pattern) { this.pattern = pattern; ipMatcher = IPMatcher.builder().addPatternOrHost(pattern).build(); }