Class StringConverter.StringToDecimal

    • Constructor Detail

      • StringToDecimal

        public StringToDecimal()
    • Method Detail

      • convertString

        public ConversionResult convertString​(java.lang.CharSequence input)
        Description copied from class: StringConverter
        Convert a string to the target type of this converter.
        Specified by:
        convertString in class StringConverter
        input - the string to be converted
        either an AtomicValue of the appropriate type for this converter (if conversion succeeded), or a ValidationFailure if conversion failed.
      • validate

        public ValidationFailure validate​(java.lang.CharSequence input)
        Description copied from class: StringConverter
        Validate a string for conformance to the target type, without actually performing the conversion
        validate in class StringConverter
        input - the string to be validated
        null if validation is successful, or a ValidationFailure indicating the reasons for failure if unsuccessful