vertx / io.vertx.core.cli.converters

Package io.vertx.core.cli.converters

Types

BooleanConverter

class BooleanConverter : Converter<Boolean>

A converter for boolean. This converter considered as 'true' : "true", "on", "1", "yes". All other values are considered as 'false' (as a consequence, 'null' is considered as 'false').

CharacterConverter

class CharacterConverter : Converter<Char>

A converter for character. Unlike other primitive types, characters cannot be created using 'valueOf'. Notice that only input having a length of 1 can be converted to characters. Other inputs are rejected.

ConstructorBasedConverter

class ConstructorBasedConverter<T : Any> : Converter<T>

This 'default' converter tries to create objects using a constructor taking a single String argument. Be aware that implementation must also handle the case where the input is null.

Converters

open class Converters

Entry point to the converter system.

FromBasedConverter

class FromBasedConverter<T : Any> : Converter<T>

This 'default' converter tries to create objects using a static 'from' method taking a single String argument. This converter is particularly convenient for builders.

FromStringBasedConverter

class FromStringBasedConverter<T : Any> : Converter<T>

This 'default' converter tries to create objects using a static 'from' method taking a single String argument. This converter is particularly convenient for converters themselves.

StringConverter

class StringConverter : Converter<String>

Converts String to String, that's the easy one.

ValueOfBasedConverter

class ValueOfBasedConverter<T : Any> : Converter<T>

This 'default' converter tries to create objects using a static 'valueOf' method taking a single String argument. This converter is particularly convenient to for enumeration and primitive types.