Interface SplittableDecoder<From,To>

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

public interface SplittableDecoder<From,To> extends Decoder<From,To>

A decoder that can decode an object to a collection of objects.

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

    Modifier and Type
    Method
    Description
    <T extends To>
    T[]
    decodeToArray(From value, Class<T> type)
    Decodes the specified value whose type is represented by the specified class to an array of decoded values.
    <T extends To>
    T[]
    decodeToArray(From value, Type type)
    Decodes the specified value whose type is the specified type to an array of decoded values.
    <T extends To>
    List<T>
    decodeToList(From value, Class<T> type)
    Decodes the specified value whose type is represented by the specified class to a list of decoded values.
    <T extends To>
    List<T>
    decodeToList(From value, Type type)
    Decodes the specified value whose type is the specified type to a list of decoded values.
    <T extends To>
    Set<T>
    decodeToSet(From value, Class<T> type)
    Decodes the specified value whose type is represented by the specified class to a set of decoded values.
    <T extends To>
    Set<T>
    decodeToSet(From value, Type type)
    Decodes the specified value whose type is the specified type to a set of decoded values.

    Methods inherited from interface io.inverno.mod.base.converter.Decoder

    decode, decode
  • Method Details

    • decodeToList

      <T extends To> List<T> decodeToList(From value, Class<T> type)

      Decodes the specified value whose type is represented by the specified class to a list of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the class of the decoded object
      Returns:
      a list of decoded values
    • decodeToList

      <T extends To> List<T> decodeToList(From value, Type type)

      Decodes the specified value whose type is the specified type to a list of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the type of the decoded object
      Returns:
      a list of decoded values
    • decodeToSet

      <T extends To> Set<T> decodeToSet(From value, Class<T> type)

      Decodes the specified value whose type is represented by the specified class to a set of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the class of the decoded object
      Returns:
      a set of decoded values
    • decodeToSet

      <T extends To> Set<T> decodeToSet(From value, Type type)

      Decodes the specified value whose type is the specified type to a set of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the type of the decoded object
      Returns:
      a set of decoded values
    • decodeToArray

      <T extends To> T[] decodeToArray(From value, Class<T> type)

      Decodes the specified value whose type is represented by the specified class to an array of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the class of the decoded object
      Returns:
      an array of decoded values
    • decodeToArray

      <T extends To> T[] decodeToArray(From value, Type type)

      Decodes the specified value whose type is the specified type to an array of decoded values.

      Type Parameters:
      T - the type of the decoded object
      Parameters:
      value - the value to decode
      type - the type of the decoded object
      Returns:
      an array of decoded values