Interface Converter<F,​T>

  • Type Parameters:
    Q - The type to convert to.
    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 Converter<F,​T>
    Represents an operation to convert values.

    This is a functional interface whose functional method is #convert().

    Since:
    2.0
    Version:
    1.1, 2018-04-19
    See Also:
    Wikipedia: Data Conversion
    • Method Detail

      • convert

        T convert​(F from)
        Returns a F converted into a T.
        Parameters:
        from -
        Returns:
        the converted result.