@Test public void of() { Project p = Project.of(new NameDescription("PRJ", "Project")); assertNotNull(p); assertNotNull(p.getId()); assertFalse(p.getId().isSet()); assertEquals("PRJ", p.getName()); assertEquals("Project", p.getDescription()); }
public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }
Project implements ProjectEntity { public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); } }
Project implements ProjectEntity { public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }  }
Project implements ProjectEntity { public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }  Project withId(ID id); static Project of(NameDescriptionState nameDescription); static Project of(NameDescription nameDescription); @Override Project getProject(); @Override ProjectEntityType getProjectEntityType(); @Override String getEntityDisplayName(); static Form form(); Project update(NameDescriptionState form); Form asForm(); }
Project implements ProjectEntity { public static Project of(NameDescriptionState nameDescription) { return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), nameDescription.isDisabled(), Signature.none()); }  Project withId(ID id); static Project of(NameDescriptionState nameDescription); static Project of(NameDescription nameDescription); @Override Project getProject(); @Override ProjectEntityType getProjectEntityType(); @Override String getEntityDisplayName(); static Form form(); Project update(NameDescriptionState form); Form asForm();  }