vertx / io.vertx.core.cli.annotations / ConvertedBy

ConvertedBy

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CLASS, AnnotationTarget.FILE]) class ConvertedBy

Annotates Option setters to indicate how the value is converted to the argument type.

Author
Clement Escoffier

Constructors

<init>

ConvertedBy(value: KClass<out Converter<*>>)

Annotates Option setters to indicate how the value is converted to the argument type.

Properties

value

val value: KClass<out Converter<*>>

The converter class used to transform the value as String to the target type. This converter is also used for the DefaultValue.