@Test public void testGetParent() { assertEquals(new Path("/b/t", EnumSet.of(Path.Type.directory)), new Path("/b/t/f.type", EnumSet.of(Path.Type.file)).getParent()); }
public Path getParent() { if(this.isRoot()) { return this; } return parent; }
Path extends AbstractPath implements Referenceable, Serializable { public Path getParent() { if(this.isRoot()) { return this; } return parent; } }
Path extends AbstractPath implements Referenceable, Serializable { public Path getParent() { if(this.isRoot()) { return this; } return parent; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); }
Path extends AbstractPath implements Referenceable, Serializable { public Path getParent() { if(this.isRoot()) { return this; } return parent; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); @Override T serialize(final Serializer dict); @Override EnumSet<Type> getType(); void setType(final EnumSet<Type> type); boolean isVolume(); boolean isDirectory(); boolean isPlaceholder(); boolean isFile(); boolean isSymbolicLink(); @Override char getDelimiter(); Path getParent(); PathAttributes attributes(); void setAttributes(final PathAttributes attributes); Path withAttributes(final PathAttributes attributes); @Override String getName(); @Override String getAbsolute(); Path getSymlinkTarget(); void setSymlinkTarget(final Path target); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); boolean isChild(final Path directory); }
Path extends AbstractPath implements Referenceable, Serializable { public Path getParent() { if(this.isRoot()) { return this; } return parent; } Path(final Path copy);  Path(final Path parent, final String name, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type);  Path(final String absolute, final EnumSet<Type> type, final PathAttributes attributes);  Path(final Path parent, final String name, final EnumSet<Type> type, final PathAttributes attributes); @Override T serialize(final Serializer dict); @Override EnumSet<Type> getType(); void setType(final EnumSet<Type> type); boolean isVolume(); boolean isDirectory(); boolean isPlaceholder(); boolean isFile(); boolean isSymbolicLink(); @Override char getDelimiter(); Path getParent(); PathAttributes attributes(); void setAttributes(final PathAttributes attributes); Path withAttributes(final PathAttributes attributes); @Override String getName(); @Override String getAbsolute(); Path getSymlinkTarget(); void setSymlinkTarget(final Path target); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); boolean isChild(final Path directory); static final char DELIMITER; }