Interface Converter<IN,​OUT>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Converter.None
      This marker class is only to be used with annotations, to indicate that no converter is to be used.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      OUT convert​(IN value)
      Main conversion method.
      JavaType getInputType​(TypeFactory typeFactory)
      Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
      JavaType getOutputType​(TypeFactory typeFactory)
      Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
    • Method Detail

      • convert

        OUT convert​(IN value)
        Main conversion method.
      • getInputType

        JavaType getInputType​(TypeFactory typeFactory)
        Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
        Since:
        2.2
      • getOutputType

        JavaType getOutputType​(TypeFactory typeFactory)
        Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
        Since:
        2.2