public final class Options extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
<T> T |
getOptionArg(String optionName,
Class<T> type) |
<T> T |
getOptionArg(String optionName,
Class<T> type,
T defaultValue) |
<T> List<T> |
getOptionArgs(String optionName,
Class<T> type) |
int |
getOptionCount() |
List<String> |
getOptions() |
<T> T |
getPositionalArg(int index,
Class<T> type) |
<T> T |
getPositionalArg(int index,
Class<T> type,
T defaultValue) |
int |
getPositionalArgCount() |
<T> List<T> |
getPositionalArgs(Class<T> type) |
int |
hashCode() |
boolean |
hasOption(String optionName) |
static Options |
parse(String spec,
String... args) |
String |
toString() |
public <T> T getPositionalArg(int index, Class<T> type)
public <T> T getPositionalArg(int index, Class<T> type, T defaultValue)
public int getPositionalArgCount()
public boolean hasOption(String optionName)
@Nullable public <T> T getOptionArg(String optionName, Class<T> type, @Nullable T defaultValue)
public int getOptionCount()
Copyright © 2015–2016 FBK-irst. All rights reserved.