Class PrimitiveDecoders.CharacterDecoder

All Implemented Interfaces:
Decoder, Decoder.Text<Character>
Enclosing class:
PrimitiveDecoders<T>

public static class PrimitiveDecoders.CharacterDecoder extends PrimitiveDecoders<Character>
  • Constructor Details

    • CharacterDecoder

      public CharacterDecoder()
  • Method Details

    • decode

      public Character decode(String s) throws DecodeException
      Description copied from interface: Decoder.Text
      Decode the given String into an object of type T.
      Parameters:
      s - string to be decoded.
      Returns:
      the decoded message as an object of type T
      Throws:
      DecodeException - If the provided string cannot be decoded to type T