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 Summary

    Modifier and Type
    Method
    Description
    convert(I input)
    Converts the input to the output.
  • Method Details

    • convert

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