@Override
  public boolean accept(Link link) {
    return Objects.equals(link.getName(), linkName);
  }
In addition to filtering this filter allows overriding the link url too.
ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/LinkNameFilter.java