예제 #1
0
 public Builder(@Nonnull IFunction function) {
   this.name = function.getName();
   this.value = function.getContent();
   this.system = function.isSystem();
   this.description = function.getDescription();
   if (function.isIdDefined()) {
     this.id = function.getId();
   }
   this.parameterNames = new ArrayList<String>(function.getParameterNames());
 }
예제 #2
0
 private static void copy(@Nonnull AFunction target, @Nonnull IFunction source) {
   target.name = source.getName();
   target.content = source.getContent();
   target.description = Strings.getNotEmpty(source.getDescription(), "");
   target.system = source.isSystem();
   if (source.isIdDefined()) {
     target.id = source.getId();
   }
   target.parameterNames = new ArrayList<String>(source.getParameterNames());
 }