Interface Converter<From,To,C>

Type Parameters:
From - The type of the element to be converted.
To - The output type.
C - The context for passing optional conversion instructions.
All Superinterfaces:
Serializable

@PublicEvolving public interface Converter<From,To,C> extends Serializable
A generic interface for converting data types.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(From source, C context)
    Converts elements of type From into elements of type To.
  • Method Details

    • convert

      To convert(From source, C context)
      Converts elements of type From into elements of type To.
      Parameters:
      source - The element to be converted.
      context - The context with conversion instructions and utilities.
      Returns:
      The element in the target type.