vertx / io.vertx.core.cli.converters / CharacterConverter

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.

Author
Clement Escoffier

Properties

INSTANCE

static val INSTANCE: CharacterConverter

The converter.

Functions

fromString

fun fromString(input: String): Char