【发布时间】:2018-03-14 09:27:15
【问题描述】:
org.apache.commons.cli 的界面如下:
public Option.Builder type(Class<?> type)
设置选项的类型。
参数:
type - the type of the Option
返回:
this builder, to allow method chaining
如果我想构建一个“int”类型的选项,我应该如何调用这个函数?
【问题讨论】:
-
我注意到你的问题仍然是“开放的”——因为你没有接受答案。请查看并决定是否要accept 回答。或者让我知道我是否可以做些什么来增强我的输入以使其被接受。接受有助于未来的读者确定问题是否已解决,并对花时间回答你的人表示感谢。谢谢!