public Project Merge() { adaptee.setBenefits(getBenefits()); adaptee.setAssumptions(getAssumptions()); adaptee.setDeliverables(getDeliverables()); adaptee.setConstraints(getConstraints()); adaptee.setTools(arrayToString(getTools())); return adaptee; }
public ProjectReadAdapter build() { if (adaptee == null) { throw new RuntimeException("Null actionPlan cannot be persisted."); } setBenefits(adaptee.getBenefits()); setAssumptions(adaptee.getAssumptions()); setDeliverables(adaptee.getDeliverables()); setConstraints(adaptee.getConstraints()); // Criado um array de Inteiros, e convertido para String setTools(stringToArray(adaptee.getTools())); return this; }