@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    LinkNameFilter that = (LinkNameFilter) o;
    return Objects.equals(linkName, that.linkName) &&
      Objects.equals(linkUrl, that.linkUrl) &&
      isVisible() == that.isVisible();
  }
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