public class StringSetOptionHandler extends org.kohsuke.args4j.spi.OptionHandler<java.util.function.Supplier<com.google.common.collect.ImmutableSet<String>>>
OptionHandler
that collects multiple arguments passed to an option in a Set
. In a
list of command-line arguments:
Set
.
Constructor and Description |
---|
StringSetOptionHandler(org.kohsuke.args4j.CmdLineParser parser,
org.kohsuke.args4j.OptionDef option,
org.kohsuke.args4j.spi.Setter<? super java.util.function.Supplier<com.google.common.collect.ImmutableSet<String>>> setter) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMetaVariable() |
int |
parseArguments(org.kohsuke.args4j.spi.Parameters params) |
public StringSetOptionHandler(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<? super java.util.function.Supplier<com.google.common.collect.ImmutableSet<String>>> setter) throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
public String getDefaultMetaVariable()
getDefaultMetaVariable
in class org.kohsuke.args4j.spi.OptionHandler<java.util.function.Supplier<com.google.common.collect.ImmutableSet<String>>>
public int parseArguments(org.kohsuke.args4j.spi.Parameters params) throws org.kohsuke.args4j.CmdLineException
parseArguments
in class org.kohsuke.args4j.spi.OptionHandler<java.util.function.Supplier<com.google.common.collect.ImmutableSet<String>>>
org.kohsuke.args4j.CmdLineException