public static boolean compareWithoutSchemeAndAuthority(Path path1, Path path2) {
    return PathUtils.getPathWithoutSchemeAndAuthority(path1).equals(getPathWithoutSchemeAndAuthority(path2));
  }
public static boolean compareWithoutSchemeAndAuthority ( Path path1 , Path path2 ) { return PathUtils . getPathWithoutSchemeAndAuthority ( path1 ) . equals ( getPathWithoutSchemeAndAuthority ( path2 ) ) ; }
Compare two path without shedme and authority (the prefix)
@param path1
@param path2
@return