class IpCompletionRelevance implements Serializable {

  public boolean matches(String[] subQueries, Ip ip) {
    return Arrays.stream(subQueries)
        .allMatch(
            sq ->
                ip.toString().contains(sq)
                    || _matchTags.stream().anyMatch(tag -> tag.contains(sq)));
  }

  public  IpCompletionRelevance(String display, String... matchTags);
  public  IpCompletionRelevance(String display, List<String> matchTags);

}