/** * Creates a new builder with the values of this object. * * @return new builder */ public CategoryDraftBuilder newBuilder() { return new CategoryDraftBuilder(assets, custom, description, externalId, key, metaDescription, metaKeywords, metaTitle, name, orderHint, parent, slug); }
/** * Creates a new object initialized with the given values. * * @param name initial value for the {@link CategoryDraft#getName()} property * @param slug initial value for the {@link CategoryDraft#getSlug()} property * @return new object initialized with the given values */ public static CategoryDraftBuilder of(final LocalizedString name, final LocalizedString slug) { return new CategoryDraftBuilder(null, null, null, null, null, null, null, null, name, null, null, slug); }
public static CategoryDraftBuilder of(final LocalizedString name, final LocalizedString slug) { return new CategoryDraftBuilder(name, slug); }
public static CategoryDraftBuilder of(final LocalizedStrings name, final LocalizedStrings slug) { return new CategoryDraftBuilder(name, slug); }
public static CategoryDraftBuilder of(final LocalizedStrings name, final LocalizedStrings slug) { return new CategoryDraftBuilder(name, slug); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static CategoryDraftBuilder of(final CategoryDraft template) { return new CategoryDraftBuilder(template.getAssets(), template.getCustom(), template.getDescription(), template.getExternalId(), template.getKey(), template.getMetaDescription(), template.getMetaKeywords(), template.getMetaTitle(), template.getName(), template.getOrderHint(), template.getParent(), template.getSlug()); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static CategoryDraftBuilder of(final Category template) { return new CategoryDraftBuilder(copyAssets(template.getAssets()), copyCustom(template.getCustom()), template.getDescription(), template.getExternalId(), template.getKey(), template.getMetaDescription(), template.getMetaKeywords(), template.getMetaTitle(), template.getName(), template.getOrderHint(), template.getParent(), template.getSlug()); } }