Class NumberToFloatTransform

    • Constructor Detail

      • NumberToFloatTransform

        public NumberToFloatTransform​(Class<?> sourceType,
                                      boolean isNarrowing,
                                      boolean isLossy)
    • Method Detail

      • transformDirect

        public Object transformDirect​(Object value)
                               throws TransformationException
        This method transforms a value of the source type into a value of the target type.
        Specified by:
        transformDirect in class Transform
        Parameters:
        value - Incoming value of source type
        Returns:
        Outgoing value of target type
        Throws:
        TransformationException - if value is an incorrect input type or the transformation fails
      • getTargetType

        public Class<?> getTargetType()
        Type of the outgoing value.
        Specified by:
        getTargetType in class Transform
        Returns:
        Target type