Interface ConverterCreator

All Known Implementing Classes:
CollectionConverters.ArrayCreator, Converters.PassThruConverterCreator, MiscConverters.StringToEnumConverterCreator

public interface ConverterCreator
ConverterCreator interface. Classes implement this interface to create a converter that can convert one Java object type to another.
  • Method Summary

    Modifier and Type
    Method
    Description
    <S, T> Converter<S,T>
    createConverter(Class<S> sourceClass, Class<T> targetClass)
    Creates a Converter that can convert the sourceClass to the targetClass.
  • Method Details

    • createConverter

      <S, T> Converter<S,T> createConverter(Class<S> sourceClass, Class<T> targetClass)
      Creates a Converter that can convert the sourceClass to the targetClass. Returns null if this creater doesn't support the class pair.
      Parameters:
      sourceClass - The source Class to convert
      targetClass - The target Class to convert to
      Returns:
      a converter that can convert Objects