Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public Builder name(final String name) {
   this.name = ContentName.from(name);
   return this;
 }