Class NewInstanceConverter

  • All Implemented Interfaces:
    Converter<Object>

    public class NewInstanceConverter
    extends Object
    implements Converter<Object>
    Converts a value to an object via its single-String constructor.
    • Constructor Detail

      • NewInstanceConverter

        public NewInstanceConverter​(Class<?> clazz)
    • Method Detail

      • convert

        public Object convert​(String paramValue)
        Description copied from interface: Converter
        Performs a conversion between the given parameter value and the target type.
        Specified by:
        convert in interface Converter<Object>
        Parameters:
        paramValue - the string value to convert.
        Returns:
        the resulting object.