Java Code Examples for org.kohsuke.args4j.spi.Setter#addValue()

The following examples show how to use org.kohsuke.args4j.spi.Setter#addValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestLabelOptions.java    From buck with Apache License 2.0 4 votes vote down vote up
public LabelsOptionHandler(
    CmdLineParser parser, OptionDef option, Setter<Map<Integer, LabelSelector>> setter)
    throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(labels);
}
 
Example 2
Source File: StringSetOptionHandler.java    From buck with Apache License 2.0 4 votes vote down vote up
public StringSetOptionHandler(
    CmdLineParser parser, OptionDef option, Setter<? super Supplier<ImmutableSet<String>>> setter)
    throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(supplier);
}
 
Example 3
Source File: SingleStringSetOptionHandler.java    From buck with Apache License 2.0 4 votes vote down vote up
public SingleStringSetOptionHandler(
    CmdLineParser parser, OptionDef option, Setter<? super Supplier<ImmutableSet<String>>> setter)
    throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(supplier);
}
 
Example 4
Source File: TestSelectorOptions.java    From buck with Apache License 2.0 4 votes vote down vote up
public TestSelectorsOptionHandler(
    CmdLineParser parser, OptionDef option, Setter<Supplier<TestSelectorList>> setter)
    throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(MoreSuppliers.memoize(builder::build));
}