public static Event clone(Event event) { if (event == null) return null; Event clone = create(); clone.setId(ObjectUtil.clone(event.getId())); clone.setDate(ObjectUtil.clone(event.getDate())); clone.setMessage(ObjectUtil.clone(event.getMessage())); return clone; }
public static Result clone(Result result) { if (result == null) return null; Result clone = create(); clone.setType(ObjectUtil.clone(result.getType())); clone.setName(ObjectUtil.clone(result.getName())); clone.setKey(ObjectUtil.clone(result.getKey())); clone.setConstruct(ObjectUtil.clone(result.getConstruct())); clone.setRequired(ObjectUtil.clone(result.getRequired())); return clone; }
public static PhoneNumber clone(PhoneNumber phoneNumber) { if (phoneNumber == null) return null; PhoneNumber clone = create(); clone.setId(ObjectUtil.clone(phoneNumber.getId())); clone.setArea(ObjectUtil.clone(phoneNumber.getArea())); clone.setNumber(ObjectUtil.clone(phoneNumber.getNumber())); clone.setExtension(ObjectUtil.clone(phoneNumber.getExtension())); clone.setCountry(phoneNumber.getCountry()); clone.setType(phoneNumber.getType()); clone.setValue(ObjectUtil.clone(phoneNumber.getValue())); return clone; }