Class DefaultDoubleTypeManager

    • Constructor Detail

      • DefaultDoubleTypeManager

        DefaultDoubleTypeManager()
    • Method Detail

      • getTargetContext

         TypeManagerContext getTargetContext()

        Normally type managers are bound to particular type (targetType property). However, sometimes that is not enough. Consider, for example String - normally we use it as-is but for SQL context we want to parse values like 'value' as value (strip single quotes).

        So, normally all objects which implement this interface should have unique combination of targetType and this property

      • maybeParse

         Double maybeParse(String rawValue)

        Tries to parse value of the target type from its given string representation.

        Returns:

        non-null in case of successful parse