Class StringConverter.StringToIntegerSubtype

  • Enclosing class:
    StringConverter

    public static class StringConverter.StringToIntegerSubtype
    extends StringConverter
    Converts a string to a built-in subtype of integer
    • Constructor Detail

      • StringToIntegerSubtype

        public StringToIntegerSubtype​(BuiltInAtomicType targetType)
    • 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
        Parameters:
        input - the string to be converted
        Returns:
        either an AtomicValue of the appropriate type for this converter (if conversion succeeded), or a ValidationFailure if conversion failed.