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()); }
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()); }