@Override
  public int compare(JimfsPath a, JimfsPath b) {
    Comparator<JimfsPath> comparator =
        Comparator.comparing(JimfsPath::root, rootComparator)
            .thenComparing(JimfsPath::names, namesComparator);
    return comparator.compare(a, b);
  }
Creates a hash code for the given path.
jimfs/src/main/java/com/google/common/jimfs/PathService.java