Interface ConverterFactory<s,R>

Type Parameters:
s - the source type converters created by this factory can convert from
R - the target range (or base) type converters created by this factory can convert to; for example Number for a set of number subtypes.

public interface ConverterFactory<s,R>
A factory for "ranged" converters that can convert objects from s to subtypes of R.

Implementations may additionally implement ConditionalConverter.

since:
3.0
Author:
Keith Donald
see Also:
  • Method summary

    Modifier and Type
    Method
    Description
    <T extends R>
    Converter<s, ? extends @Nullable T>
    getConverter(Class<T>&nbsp;targetType)
    Get the converter to convert from s to target type T, where T is also an instance of R.
  • Method Details

    • getConverter

      <T extends R>&nbsp;Converter<s, ? extends @Nullable T>&nbsp;getConverter(Class<T>&nbsp;targetType)
      Get the converter to convert from s to target type T, where T is also an instance of R.
      Type Parameters:
      T - the target type
      Parameters:
      targetType - the target type to convert to
      Returns:
      a converter from s to T