Interface Converters.ChainableConverter<S,D1>

Type Parameters:
S - the source type
D1 - the intermediate destination type
Enclosing class:
Converters

public static interface Converters.ChainableConverter<S,D1>
Provides interface to chain another converter or convert to different destination type.
  • Method Summary

    Modifier and Type
    Method
    Description
    <D2> Converter<S,D2>
    map(Converter<D1,D2> converter)
    Chains a converter of S -> D1 to S -> D2 with given converter.
    <D2> Converter<S,D2>
    to(Class<D2> destinationType)
    Chains a converter of S -> D1 to S -> D2.
  • Method Details

    • to

      <D2> Converter<S,D2> to(Class<D2> destinationType)
      Chains a converter of S -> D1 to S -> D2.
      Type Parameters:
      D2 - the final destination type
      Parameters:
      destinationType - the final destination type
      Returns:
      a converter
    • map

      <D2> Converter<S,D2> map(Converter<D1,D2> converter)
      Chains a converter of S -> D1 to S -> D2 with given converter.
      Type Parameters:
      D2 - the final destination type
      Parameters:
      destinationType - the final destination type
      Returns:
      a converter