Package io.vertx.core.cli.converters
Class CharacterConverter
- java.lang.Object
-
- io.vertx.core.cli.converters.CharacterConverter
-
public final class CharacterConverter extends Object implements Converter<Character>
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
-
-
Field Summary
Fields Modifier and Type Field Description static CharacterConverter
INSTANCE
The converter.
-
-
-
Field Detail
-
INSTANCE
public static final CharacterConverter INSTANCE
The converter.
-
-
Method Detail
-
fromString
public Character fromString(String input) throws IllegalArgumentException
- Specified by:
fromString
in interfaceConverter<Character>
- Throws:
IllegalArgumentException
-
-