/** * Obtain a new {@link Arguments} that is the same as this * {@link Arguments} instance with the all occurrences of * any {@link Argument} with the specified name removed. * * @param name the name of the argument to remove * * @return a new {@link Arguments} that is the same as this * {@link Arguments} instance with the all occurrences * of the specified named {@link Argument} removed */ public Arguments withoutNamed(String name) { Arguments newArguments = new Arguments(); for (Argument argument : this.arguments) { String argName = argument.getName(); if (!safeEquals(argName, name)) { newArguments.arguments.add(argument); } } return newArguments; }
/** * Obtain a new {@link Arguments} that is the same as this * {@link Arguments} instance with the all occurrences of * any {@link Argument} with the specified name removed. * * @param name the name of the argument to remove * * @return a new {@link Arguments} that is the same as this * {@link Arguments} instance with the all occurrences * of the specified named {@link Argument} removed */ public Arguments withoutNamed(String name) { Arguments newArguments = new Arguments(); for (Argument argument : this.arguments) { String argName = argument.getName(); if (!safeEquals(argName, name)) { newArguments.arguments.add(argument); } } return newArguments; }
String name = argument.getName(); char separator = argument.getSeparator(); List<String> values = argument.resolve(platform, evaluator, optionsByType);
String name = argument.getName(); char separator = argument.getSeparator(); List<String> values = argument.resolve(platform, evaluator, optionsByType);