Interface ConverterFunction<T>

Type Parameters:
T - the target type of the conversion
All Known Subinterfaces:
Converter<T>, SqlConverter<T>
All Known Implementing Classes:
AbstractNumberConverter, AbstractStringParsingConverter, BigDecimalConverter, BigIntegerConverter, BooleanConverter, ByteArrayConverter, ByteConverter, CharacterConverter, DoubleConverter, FloatConverter, GenericConverter, GenericSqlConverter, IntegerConverter, LongConverter, ShortConverter, SqlDateConverter, SqlTimeConverter, SqlTimestampConverter, StringConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConverterFunction<T>
A functional interface for converting an object to a specific type.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable T
    convert(@Nullable Object value)
    Converts the given value to the target type.
  • Method Details

    • convert

      @Nullable T convert(@Nullable Object value)
      Converts the given value to the target type.
      Parameters:
      value - the value to convert, may be null
      Returns:
      the converted value, or null if the input was null or could not be converted