vertx / io.vertx.core.cli / TypedOption

# TypedOption

`open class TypedOption<T : Any> : Option`

An implementation of Option for java specifying the type of object received by the option. This allows converting the given raw value into the specified type.

Author
Clement Escoffier

### Constructors

<init> | `TypedOption()` Creates an empty instance of TypedOption. `TypedOption(option: TypedOption<T>)` Creates an instance of TypedOption by copying the state of another TypedOption

### Functions

addChoice | `open fun addChoice(choice: String): TypedOption<T>`
ensureValidity | `open fun ensureValidity(): Unit`
getConverter | `open fun getConverter(): Converter<T>`
getListSeparator | `open fun getListSeparator(): String`
getType | `open fun getType(): Class<T>`
isParsedAsList | `open fun isParsedAsList(): Boolean`
setArgName | `open fun setArgName(argName: String): TypedOption<T>`
setChoices | `open fun setChoices(choices: MutableSet<String>): TypedOption<T>`
setConverter | `open fun setConverter(converter: Converter<T>): TypedOption<T>`
setDefaultValue | `open fun setDefaultValue(defaultValue: String): TypedOption<T>`
setDescription | `open fun setDescription(description: String): TypedOption<T>`
setFlag | `open fun setFlag(flag: Boolean): TypedOption<T>`
setHidden | `open fun setHidden(hidden: Boolean): TypedOption<T>`
setListSeparator | `open fun setListSeparator(listSeparator: String): TypedOption<T>`
setLongName | `open fun setLongName(longName: String): TypedOption<T>`
setMultiValued | `open fun setMultiValued(acceptMultipleValues: Boolean): TypedOption<T>`
setParsedAsList | `open fun setParsedAsList(isList: Boolean): TypedOption<T>`
setRequired | `open fun setRequired(required: Boolean): TypedOption<T>`
setShortName | `open fun setShortName(shortName: String): TypedOption<T>`
setSingleValued | `open fun setSingleValued(acceptSingleValue: Boolean): TypedOption<T>`
setType | `open fun setType(type: Class<T>): TypedOption<T>`