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