@Test public void testToString() { JimfsPath path = new JimfsPath(service, null, ImmutableList.of(Name.simple("foo"), Name.simple("bar"))); assertThat(service.toString(path)).isEqualTo("foo/bar"); path = new JimfsPath(service, Name.simple("/"), ImmutableList.of(Name.simple("foo"))); assertThat(service.toString(path)).isEqualTo("/foo"); }
public String toString(JimfsPath path) { Name root = path.root(); String rootString = root == null ? null : root.toString(); Iterable<String> names = Iterables.transform(path.names(), Functions.toStringFunction()); return type.toString(rootString, names); }
PathService implements Comparator<JimfsPath> { public String toString(JimfsPath path) { Name root = path.root(); String rootString = root == null ? null : root.toString(); Iterable<String> names = Iterables.transform(path.names(), Functions.toStringFunction()); return type.toString(rootString, names); } }
PathService implements Comparator<JimfsPath> { public String toString(JimfsPath path) { Name root = path.root(); String rootString = root == null ? null : root.toString(); Iterable<String> names = Iterables.transform(path.names(), Functions.toStringFunction()); return type.toString(rootString, names); } PathService(Configuration config);   PathService(
      PathType type,
      Iterable<PathNormalization> displayNormalizations,
      Iterable<PathNormalization> canonicalNormalizations,
      boolean equalityUsesCanonicalForm); }
PathService implements Comparator<JimfsPath> { public String toString(JimfsPath path) { Name root = path.root(); String rootString = root == null ? null : root.toString(); Iterable<String> names = Iterables.transform(path.names(), Functions.toStringFunction()); return type.toString(rootString, names); } PathService(Configuration config);   PathService(
      PathType type,
      Iterable<PathNormalization> displayNormalizations,
      Iterable<PathNormalization> canonicalNormalizations,
      boolean equalityUsesCanonicalForm); void setFileSystem(FileSystem fileSystem); FileSystem getFileSystem(); String getSeparator(); JimfsPath emptyPath(); Name name(String name); JimfsPath createRoot(Name root); JimfsPath createFileName(Name name); JimfsPath createRelativePath(Iterable<Name> names); JimfsPath createPath(@NullableDecl Name root, Iterable<Name> names); JimfsPath parsePath(String first, String... more); String toString(JimfsPath path); int hash(JimfsPath path); @Override int compare(JimfsPath a, JimfsPath b); URI toUri(URI fileSystemUri, JimfsPath path); JimfsPath fromUri(URI uri); PathMatcher createPathMatcher(String syntaxAndPattern); }
PathService implements Comparator<JimfsPath> { public String toString(JimfsPath path) { Name root = path.root(); String rootString = root == null ? null : root.toString(); Iterable<String> names = Iterables.transform(path.names(), Functions.toStringFunction()); return type.toString(rootString, names); } PathService(Configuration config);   PathService(
      PathType type,
      Iterable<PathNormalization> displayNormalizations,
      Iterable<PathNormalization> canonicalNormalizations,
      boolean equalityUsesCanonicalForm); void setFileSystem(FileSystem fileSystem); FileSystem getFileSystem(); String getSeparator(); JimfsPath emptyPath(); Name name(String name); JimfsPath createRoot(Name root); JimfsPath createFileName(Name name); JimfsPath createRelativePath(Iterable<Name> names); JimfsPath createPath(@NullableDecl Name root, Iterable<Name> names); JimfsPath parsePath(String first, String... more); String toString(JimfsPath path); int hash(JimfsPath path); @Override int compare(JimfsPath a, JimfsPath b); URI toUri(URI fileSystemUri, JimfsPath path); JimfsPath fromUri(URI uri); PathMatcher createPathMatcher(String syntaxAndPattern);  }