Interface TypeConverter

All Superinterfaces:
Serializable
All Known Implementing Classes:
Bindings, FeelTypeConverter, TypeConverterImpl

public interface TypeConverter extends Serializable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TypeConverter
    Default conversions as from JSR245.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    convert(Object value, Class<T> type)
    Convert the given input value to the specified target type.
  • Field Details

    • DEFAULT

      static final TypeConverter DEFAULT
      Default conversions as from JSR245.
  • Method Details

    • convert

      <T> T convert(Object value, Class<T> type) throws jakarta.el.ELException
      Convert the given input value to the specified target type.
      Parameters:
      value - input value
      type - target type
      Returns:
      conversion result
      Throws:
      jakarta.el.ELException