All Known Implementing Classes:
ConvertorManager

public interface ConvertorExecutor
  • Method Summary

    Modifier and Type
    Method
    Description
    <F, T, D extends ConvertorData>
    Optional<T>
    convert(F source, D data)
    Lookup and use convertor by specified type, then converts source and returns converted result.
    <F, T, D extends ConvertorData>
    Optional<T>
    convert(Collection<F> source, D data)
    Lookup and use convertor by specified type, then converts source collection and returns converted result.
    <K, F, T, D extends ConvertorData>
    Optional<T>
    convert(Map<K,F> source, D data)
    Lookup and use convertor by specified type, then converts source collection and returns converted result.
  • Method Details

    • convert

      <F, T, D extends ConvertorData> Optional<T> convert(F source, D data)
      Lookup and use convertor by specified type, then converts source and returns converted result.
      Type Parameters:
      F - the source type
      T - the result type
      D - the data type
      Parameters:
      source - the source
      data - convertor data
      Returns:
      the result (can be empty, if no convertor was found)
    • convert

      <F, T, D extends ConvertorData> Optional<T> convert(Collection<F> source, D data)
      Lookup and use convertor by specified type, then converts source collection and returns converted result.
      Type Parameters:
      F - the source type
      T - the result type
      D - the data type
      Parameters:
      source - the source collection
      data - convertor data
      Returns:
      the result (can be empty, if no convertor was found)
    • convert

      <K, F, T, D extends ConvertorData> Optional<T> convert(Map<K,F> source, D data)
      Lookup and use convertor by specified type, then converts source collection and returns converted result.
      Type Parameters:
      K - the source key type
      F - the source value type
      T - the result type
      D - the data type
      Parameters:
      source - the source collection
      data - convertor data
      Returns:
      the result (can be empty, if no convertor was found)