public class DefaultArgumentParser extends Object implements ArgumentParser
| Constructor and Description |
|---|
DefaultArgumentParser() |
public <T> T parse(String argument, Class<T> type) throws ArgumentFormatException, IllegalArgumentException
ArgumentParserparse in interface ArgumentParserT - class typeargument - string argumenttype - class typeArgumentFormatException - If the given argument is not parseable
to the specified type.IllegalArgumentException - If the specified type is not supported.public <T> List<T> parse(List<String> arguments, Class<T> type) throws ArgumentFormatException, IllegalArgumentException
ArgumentParserparse in interface ArgumentParserarguments - List of all arguments in String format.type - type class type.ArgumentFormatException - If the a given argument is not parseable
to the specified type.IllegalArgumentException - If the specified type is not supported.Copyright © 2015–2017. All rights reserved.