Interface PrimitiveDecoder<From>

Type Parameters:
From - the encoded type
All Superinterfaces:
Decoder<From,Object>
All Known Subinterfaces:
ObjectConverter<From>, SplittablePrimitiveDecoder<From>
All Known Implementing Classes:
ByteBufConverter, ObjectDecoder, ParameterConverter, StringCompositeConverter, StringConverter, TextByteBufMediaTypeConverter

public interface PrimitiveDecoder<From> extends Decoder<From,Object>

An object decoder providing primitive bindings to decode to primitive and common types.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • decodeByte

      Byte decodeByte(From value) throws ConverterException

      Decodes to byte.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeShort

      Short decodeShort(From value) throws ConverterException

      Decodes to short.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeInteger

      Integer decodeInteger(From value) throws ConverterException

      Decodes to integer.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeLong

      Long decodeLong(From value) throws ConverterException

      Decodes to long.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeFloat

      Float decodeFloat(From value) throws ConverterException

      Decodes to float.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeDouble

      Double decodeDouble(From value) throws ConverterException

      Decodes to double.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeCharacter

      Character decodeCharacter(From value) throws ConverterException

      Decodes to character.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeBoolean

      Boolean decodeBoolean(From value) throws ConverterException

      Decodes to boolean.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeString

      String decodeString(From value) throws ConverterException

      Decodes to string.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeBigInteger

      BigInteger decodeBigInteger(From value) throws ConverterException

      Decodes to big integer.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeBigDecimal

      BigDecimal decodeBigDecimal(From value) throws ConverterException

      Decodes to big decimal.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeLocalDate

      LocalDate decodeLocalDate(From value) throws ConverterException

      Decodes to local date.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeLocalDateTime

      LocalDateTime decodeLocalDateTime(From value) throws ConverterException

      Decodes to local datetime.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeZonedDateTime

      ZonedDateTime decodeZonedDateTime(From value) throws ConverterException

      Decodes to zoned datetime.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeCurrency

      Currency decodeCurrency(From value) throws ConverterException

      Decodes to currency.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeLocale

      Locale decodeLocale(From value) throws ConverterException

      Decodes to locale.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeFile

      File decodeFile(From value) throws ConverterException

      Decodes to file.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodePath

      Path decodePath(From value) throws ConverterException

      Decodes to path.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeURI

      URI decodeURI(From value) throws ConverterException

      Decodes to URI.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeURL

      URL decodeURL(From value) throws ConverterException

      Decodes to URL.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodePattern

      Pattern decodePattern(From value) throws ConverterException

      Decodes to pattern.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeInetAddress

      InetAddress decodeInetAddress(From value) throws ConverterException

      Decodes to inet address.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeInetSocketAddress

      InetSocketAddress decodeInetSocketAddress(From value) throws ConverterException

      Decodes to inet socket address.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value
    • decodeClass

      Class<?> decodeClass(From value) throws ConverterException

      Decodes to class.

      Parameters:
      value - the encoded value to decode
      Returns:
      a decoded value
      Throws:
      ConverterException - if there was an error decoding the value