@Test public void resolve() { assertEquals(Paths.parse("/home/file.pdf"), Paths.parse("/home/dir").resolve("file.pdf")); assertEquals(Paths.parse("/home/dir/file.pdf"), Paths.parse("/home/dir/").resolve("file.pdf")); }
public static Path parse(String path) { return path.isEmpty() ? ImmutablePath.EMPTY : ImmutablePath.create(new PathBuilder().splitAndAdd(path, true)); }
Paths { public static Path parse(String path) { return path.isEmpty() ? ImmutablePath.EMPTY : ImmutablePath.create(new PathBuilder().splitAndAdd(path, true)); } }
Paths { public static Path parse(String path) { return path.isEmpty() ? ImmutablePath.EMPTY : ImmutablePath.create(new PathBuilder().splitAndAdd(path, true)); }  }
Paths { public static Path parse(String path) { return path.isEmpty() ? ImmutablePath.EMPTY : ImmutablePath.create(new PathBuilder().splitAndAdd(path, true)); }  static Path of(String... segments); static Path parse(String path); static Path empty(); }
Paths { public static Path parse(String path) { return path.isEmpty() ? ImmutablePath.EMPTY : ImmutablePath.create(new PathBuilder().splitAndAdd(path, true)); }  static Path of(String... segments); static Path parse(String path); static Path empty();  }