Interface Converter<I,​O>

  • Type Parameters:
    I - The input type.
    O - The output type.
    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<I,​O>
    A class that knows how to convert one type of object to another.
    Author:
    Garret Wilson
    • Method Detail

      • convert

        O convert​(I input)
           throws java.lang.IllegalArgumentException
        Converts the input to the output.
        Parameters:
        input - The input value to convert.
        Returns:
        The output value.
        Throws:
        java.lang.IllegalArgumentException - If there was an error converting the value.