/** * Creates a new object initialized with the given values. * * @param sources initial value for the {@link AssetDraft#getSources()} property * @param name initial value for the {@link AssetDraft#getName()} property * @return new object initialized with the given values */ public static AssetDraftDsl of(final List<AssetSource> sources, final LocalizedString name) { return new AssetDraftDsl(null, null, null, name, sources, null); }
/** * Creates a new instance of {@code AssetDraftDsl} with the values of this builder. * * @return the instance */ public AssetDraftDsl build() { return new AssetDraftDsl(custom, description, key, name, sources, tags); }
/** * 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()); } }