Package org.evoludo.util
Class CLOption.SimpleKey
Object
SimpleKey
- All Implemented Interfaces:
CLOption.Key
- Enclosing class:
CLOption
Simple key for command line options. Keys are similar to
enums but
more flexible because the set of keys can be modified at runtime.-
Field Details
-
Constructor Details
-
SimpleKey
Create a new key with the namekeyand titletitle.- Parameters:
key- the key of the command line optiontitle- the title of the command line option
-
-
Method Details
-
getKey
Description copied from interface:CLOption.KeyReturn key of in this collection. Used when parsing command line options.- Specified by:
getKeyin interfaceCLOption.Key- Returns:
- the key of the command line option
-
getTitle
Description copied from interface:CLOption.KeyBrief description of purpose of this key. Used in GUI and in help display.- Specified by:
getTitlein interfaceCLOption.Key- Returns:
- the title of the command line option
- See Also:
-