public class ArgumentHelper extends Object
| Constructor and Description |
|---|
ArgumentHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static BooleanOption |
getBoolean(CommandLine
|
static List |
getBooleans(CommandLine
|
static DoubleOption |
getDouble(CommandLine
|
static List |
getDoubles(CommandLine
|
static IntegerOption |
getInteger(CommandLine
|
static List |
getIntegers(CommandLine
|
static LongOption |
getLong(CommandLine
|
static List |
getLongs(CommandLine
|
static StringOption |
getString(CommandLine
|
static List |
getStrings(CommandLine
|
static boolean |
parseBoolean(String
|
static boolean |
parseBooleanWithDefaultValue(String
|
static double |
parseDouble(String
|
static int |
parseInteger(String
|
static long |
parseLong(String
|
public static boolean parseBooleanWithDefaultValue(Stringvalue, boolean defaultValue)
public static boolean parseBoolean(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static int parseInteger(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static long parseLong(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static double parseDouble(Stringvalue) throws ArgumentParseException
ArgumentParseException
public static BooleanOptiongetBoolean(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static List<BooleanOption > getBooleans(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static IntegerOptiongetInteger(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static List<IntegerOption > getIntegers(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static LongOptiongetLong(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static List<LongOption > getLongs(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static DoubleOptiongetDouble(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static List<DoubleOption > getDoubles(CommandLine line, String option) throws ArgumentParseException
ArgumentParseException
public static StringOptiongetString(CommandLine line, String option)
public static List<StringOption > getStrings(CommandLine line, String option)