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
enum
s but
more flexible because the set of keys can be modified at runtime.-
Field Details
-
Constructor Details
-
SimpleKey
Create a new key with the namekey
and 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.Key
Return key of in this collection. Used when parsing command line options.- Specified by:
getKey
in interfaceCLOption.Key
- Returns:
- the key of the command line option
-
getTitle
Description copied from interface:CLOption.Key
Brief description of purpose of this key. Used in GUI and in help display.- Specified by:
getTitle
in interfaceCLOption.Key
- Returns:
- the title of the command line option
- See Also:
-