io.vertx.core.cli.converters

## Class CharacterConverter

- java.lang.Object
- - io.vertx.core.cli.converters.CharacterConverter

- All Implemented Interfaces:
    Converter<Character>

      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 and Description
    --- | ---
    `static CharacterConverter` | `INSTANCE` The converter.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Character` | `fromString(String input)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final CharacterConverter INSTANCE

      The converter.

  - ### Method Detail

    - #### fromString

          public Character fromString(String input)
                               throws IllegalArgumentException

      Specified by:
        `fromString` in interface `Converter<Character>`
      Throws:
        `IllegalArgumentException`

Copyright © 2021 Eclipse. All rights reserved.