/** * Replace the first {@link Argument} with the specified name * with a new {@link Argument} with the specified value * * @param name the name of the argument * @param value the value of the argument * * @return a new {@link Arguments} instance with the specified * argument replaced */ public Arguments replace(String name, Object value) { Argument argument = Argument.of(name, value); return replace(argument); }
/** * Replace the first {@link Argument} with the specified name * with a new {@link Argument} with the specified value * * @param name the name of the argument * @param value the value of the argument * * @return a new {@link Arguments} instance with the specified * argument replaced */ public Arguments replace(String name, Object value) { Argument argument = Argument.of(name, value); return replace(argument); }
Argument.of(StringHelper.doubleQuoteIfNecessary(file.toString())), DisplayName.of("Undeploy")))