public static Project of(NameDescriptionState nameDescription) { return new Project( ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }
public Project update(NameDescriptionState form) { return of(form).withId(id).withDisabled(form.isDisabled()); }