本文整理汇总了Java中org.kohsuke.args4j.spi.Setter.addValue方法的典型用法代码示例。如果您正苦于以下问题:Java Setter.addValue方法的具体用法?Java Setter.addValue怎么用?Java Setter.addValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kohsuke.args4j.spi.Setter
的用法示例。
在下文中一共展示了Setter.addValue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LabelsOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public LabelsOptionHandler(
CmdLineParser parser,
OptionDef option,
Setter<Map<Integer, LabelSelector>> setter) throws CmdLineException {
super(parser, option, setter);
setter.addValue(labels);
}
示例2: TestSelectorsOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public TestSelectorsOptionHandler(
CmdLineParser parser,
OptionDef option,
Setter<Supplier<TestSelectorList>> setter) throws CmdLineException {
super(parser, option, setter);
setter.addValue(Suppliers.memoize(new Supplier<TestSelectorList>() {
@Override
public TestSelectorList get() {
return builder.build();
}
}));
}
示例3: StringSetOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public StringSetOptionHandler (
CmdLineParser parser, OptionDef option, Setter<? super Supplier<ImmutableSet<String>>> setter)
throws CmdLineException {
super(parser, option, setter);
setter.addValue(supplier);
}
示例4: LabelsOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public LabelsOptionHandler(
CmdLineParser parser, OptionDef option, Setter<Map<Integer, LabelSelector>> setter)
throws CmdLineException {
super(parser, option, setter);
setter.addValue(labels);
}
示例5: StringSetOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public StringSetOptionHandler(
CmdLineParser parser, OptionDef option, Setter<? super Supplier<ImmutableSet<String>>> setter)
throws CmdLineException {
super(parser, option, setter);
setter.addValue(supplier);
}
示例6: TestSelectorsOptionHandler
import org.kohsuke.args4j.spi.Setter; //导入方法依赖的package包/类
public TestSelectorsOptionHandler(
CmdLineParser parser, OptionDef option, Setter<Supplier<TestSelectorList>> setter)
throws CmdLineException {
super(parser, option, setter);
setter.addValue(MoreSuppliers.memoize(builder::build));
}