Class JsonEntryTypeConverter

  • All Implemented Interfaces:
    TypeConverter

    @MetaInfServices(TypeConverter.class)
    public class JsonEntryTypeConverter
    extends Object
    implements TypeConverter
    JsonEntry converter. Will first try to parse CharSequences and if fails create JsonEntry string for them.
    Author:
    David B. Bracewell
    • Constructor Detail

      • JsonEntryTypeConverter

        public JsonEntryTypeConverter()
    • Method Detail

      • convert

        public Object convert​(Object source,
                              Type... parameters)
                       throws TypeConversionException
        Description copied from interface: TypeConverter
        Converts an object from one type to another.
        Specified by:
        convert in interface TypeConverter
        Parameters:
        source - the source object
        parameters - the optional type parameters when using Generics.
        Returns:
        the converted object
        Throws:
        TypeConversionException - the source object was not able to be converted to the target type
      • getConversionType

        public Class[] getConversionType()
        Description copied from interface: TypeConverter
        Array of classes that this type converter can convert objects to
        Specified by:
        getConversionType in interface TypeConverter
        Returns:
        the classes that this converter can convert to