@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    // Assumes that the ordering of locations between objects are the same. This is true for the
    // current subclasses already (HFileLink, WALLink). Otherwise, we may have to sort the locations
    // or keep them presorted
    if (this.getClass().equals(obj.getClass())) {
      return Arrays.equals(this.locations, ((FileLink) obj).locations);
    }

    return false;
  }
Checks if the specified directory path is a back reference links folder.
@param dirPath Directory path to verify
@return True if the specified directory is a link references folder
hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java