@Test public void testIsContainer() { final PathContainerService s = new PathContainerService(); assertFalse(s.isContainer(new Path("/", EnumSet.of(Path.Type.directory, Path.Type.volume)))); assertTrue(s.isContainer(new Path("/t", EnumSet.of(Path.Type.directory, Path.Type.volume)))); assertTrue(s.isContainer(new Path(PathNormalizer.normalize("/t/"), EnumSet.of(Path.Type.directory, Path.Type.volume)))); assertFalse(s.isContainer(new Path("/t/a", EnumSet.of(Path.Type.directory, Path.Type.volume)))); }
public boolean isContainer(final Path file) { if(file.isRoot()) { return false; } return file.getParent().isRoot(); }
PathContainerService { public boolean isContainer(final Path file) { if(file.isRoot()) { return false; } return file.getParent().isRoot(); } }
PathContainerService { public boolean isContainer(final Path file) { if(file.isRoot()) { return false; } return file.getParent().isRoot(); }  }
PathContainerService { public boolean isContainer(final Path file) { if(file.isRoot()) { return false; } return file.getParent().isRoot(); }  Path getRoot(final Path file); boolean isContainer(final Path file); Path getContainer(final Path file); String getKey(final Path file); }
PathContainerService { public boolean isContainer(final Path file) { if(file.isRoot()) { return false; } return file.getParent().isRoot(); }  Path getRoot(final Path file); boolean isContainer(final Path file); Path getContainer(final Path file); String getKey(final Path file);  }