Interface Converter<F,T>

Type Parameters:
F - the from type
T - the to type
All Superinterfaces:
Function<F,T>
All Known Subinterfaces:
Converter<F,T>
All Known Implementing Classes:
MapListenerProxy.KeyConverter, NullImplementation.NullConverter, RequestHolder.DownConverter, RequestHolder.ErrorHandlingConverter, RequestHolder.UpConverter, SimpleOverflowMap.FrontFilterConverter
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> extends Function<F,T>
Provide for "pluggable" object conversions.
Author:
pm 2000.04.25
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    apply(F value)
     
    convert(F value)
    Convert the passed object to another object.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • convert

      T convert(F value)
      Convert the passed object to another object.
      Parameters:
      value - the object to convert
      Returns:
      the converted form of the passed object
      Throws:
      IllegalArgumentException - describes a conversion error
    • apply

      default T apply(F value)
      Specified by:
      apply in interface Function<F,T>