@Test public void testPathCreation_parseIgnoresEmptyString() { assertAbout(paths()) .that(service.parsePath("", "foo")) .hasRootComponent(null) .and() .hasNameComponents("foo"); }
public JimfsPath parsePath(String first, String... more) { String joined = type.joiner().join(Iterables.filter(Lists.asList(first, more), NOT_EMPTY)); return toPath(type.parsePath(joined)); }
PathService implements Comparator<JimfsPath> { public JimfsPath parsePath(String first, String... more) { String joined = type.joiner().join(Iterables.filter(Lists.asList(first, more), NOT_EMPTY)); return toPath(type.parsePath(joined)); } }
PathService implements Comparator<JimfsPath> { public JimfsPath parsePath(String first, String... more) { String joined = type.joiner().join(Iterables.filter(Lists.asList(first, more), NOT_EMPTY)); return toPath(type.parsePath(joined)); } PathService(Configuration config);   PathService(
      PathType type,
      Iterable<PathNormalization> displayNormalizations,
      Iterable<PathNormalization> canonicalNormalizations,
      boolean equalityUsesCanonicalForm); }
PathService implements Comparator<JimfsPath> { public JimfsPath parsePath(String first, String... more) { String joined = type.joiner().join(Iterables.filter(Lists.asList(first, more), NOT_EMPTY)); return toPath(type.parsePath(joined)); } 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 JimfsPath parsePath(String first, String... more) { String joined = type.joiner().join(Iterables.filter(Lists.asList(first, more), NOT_EMPTY)); return toPath(type.parsePath(joined)); } 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);  }