/** * 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 AssetDraftBuilder of(final AssetDraft template) { return new AssetDraftBuilder(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags()); }
/** * 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 AssetDraftDsl of(final AssetDraft template) { return new AssetDraftDsl(template.getCustom(), template.getDescription(), template.getKey(), template.getName(), template.getSources(), template.getTags()); } }