Interface ConvertorExecutor

  • All Known Implementing Classes:
    ConvertorManager

    public interface ConvertorExecutor
    • Method Detail

      • convert

        <F,​T,​D extends ConvertorDataOptional<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 ConvertorDataOptional<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)