예제 #1
0
 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;
 }
예제 #2
0
 public static void initialize(Result result) {
   if (result.getRequired() == null) result.setRequired(false);
 }