/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static ProductVariantDraftBuilder of() { return new ProductVariantDraftBuilder(null, null, null, null, null, null); }
/** * Creates a new builder with the values of this object. * * @return new builder */ public ProductVariantDraftBuilder newBuilder() { return new ProductVariantDraftBuilder(assets, attributes, images, key, prices, sku); }
public static ProductVariantDraftBuilder of() { return new ProductVariantDraftBuilder(); }
public static ProductVariantDraftBuilder of() { return new ProductVariantDraftBuilder(); }
public static ProductVariantDraftBuilder of() { return new ProductVariantDraftBuilder(); }
/** * 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 ProductVariantDraftBuilder of(final ProductVariantDraft template) { return new ProductVariantDraftBuilder(template.getAssets(), template.getAttributes(), template.getImages(), template.getKey(), template.getPrices(), template.getSku()); }
/** * 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 ProductVariantDraftBuilder of(final ProductVariant template) { return new ProductVariantDraftBuilder(copyAssets(template.getAssets()), copyAttributes(template.getAttributes()), template.getImages(), template.getKey(), copyPrices(template.getPrices()), template.getSku()); } }