Class ToAnyConverter<T>

  • public class ToAnyConverter<T>
    extends Converter<T>
    Can convert to any class that has a constructor that takes a single Object or a single String parameter.
    • Constructor Detail

      • ToAnyConverter

        public ToAnyConverter()
    • Method Detail

      • convert

        protected T convert​(Object value,
                            Class<T> type)
        Description copied from class: Converter
        Converts object to supported class without doing any type checking.
        Specified by:
        convert in class Converter<T>
        value - the object to convert; the source
        type - the Class to convert the value to; the destination type
        an object of type @code{type}. If the conversion fails an exception will be thrown. If value is null then the result will be null.