public Builder<BUILDER, C> path(final ContentPath path) { this.parentPath = path.getParentPath() != null ? path.getParentPath().asAbsolute() : null; Preconditions.checkArgument( path.elementCount() > 0, "No content can be \"root content\": " + path.toString()); this.name = ContentName.from(path.getElement(path.elementCount() - 1)); return this; }
public Builder name(final String name) { this.name = ContentName.from(name); return this; }