Interface Transform

    • Method Detail

      • supports

        boolean supports​(Class<?> sourceType,
                         Class<?> targetClass)
        Determines if this transformer supports the given types.
        Parameters:
        sourceType - type of the data source
        targetClass - type of the data target
        Returns:
        true if supported; false otherwise
      • transform

        Object transform​(Object source,
                         Class<?> targetType)
        Transform the given source object into the wanted target object.
        Parameters:
        source - object to transform
        targetType - type of the target object
        Returns:
        result of the transformation