public interface CliOptionList
A list of CLI options.
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getRequired(Set<ApoBaseC> list)
Returns all required options, taking short or long CLI argument.
|
static Collection<ApoBaseC> |
sortedList(Set<ApoBaseC> list,
int numberShort,
int numberLong)
Returns a sorted collection of CLI options.
|
static TreeMap<String,ApoBaseC> |
sortedMap(Set<ApoBaseC> list,
int numberShort,
int numberLong)
Returns a sorted map of CLI options, the mapping is the sort string to the CLI option.
|
static Set<String> getRequired(Set<ApoBaseC> list)
Returns all required options, taking short or long CLI argument.
list - input option liststatic TreeMap<String,ApoBaseC> sortedMap(Set<ApoBaseC> list, int numberShort, int numberLong)
Returns a sorted map of CLI options, the mapping is the sort string to the CLI option.
list - option list to sortnumberShort - number of arguments with short commandnumberLong - number of arguments with long commandstatic Collection<ApoBaseC> sortedList(Set<ApoBaseC> list, int numberShort, int numberLong)
Returns a sorted collection of CLI options.
list - option list to sortnumberShort - number of arguments with short commandnumberLong - number of arguments with long commandCopyright © 2016–2017. All rights reserved.