Interface TypeConverter<S,​T>

  • Type Parameters:
    S - the type parameter
    T - the type parameter
    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 TypeConverter<S,​T>
    Represents a type converter.
    Since:
    4.0
    Author:
    Anindya Chatterjee
    • Method Detail

      • convert

        T convert​(S source)
        Converts an object of type S to an object of type T.
        Parameters:
        source - the source
        Returns:
        the target object