Interface Converter<S,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canConvert​(java.lang.Class sourceClass, java.lang.Class destinationClass)
      Returns true if this converter can convert instances of sourceClass to destinationClass.
      T convert​(S source)
      Converts instance of S to T.
    • Method Detail

      • canConvert

        boolean canConvert​(java.lang.Class sourceClass,
                           java.lang.Class destinationClass)
        Returns true if this converter can convert instances of sourceClass to destinationClass.
        Parameters:
        sourceClass - source Class
        destinationClass - destination Class
        Returns:
        true if this converter can convert instances of sourceClass to destinationClass, false otherwise
      • convert

        T convert​(S source)
        Converts instance of S to T.
        Parameters:
        source - instance of S
        Returns:
        instance of S converted to type T