Class StringConverter.StringToUnionConverter

  • Enclosing class:
    StringConverter

    public static class StringConverter.StringToUnionConverter
    extends StringConverter
    Converter from string to plain union types
    • Method Detail

      • convertString

        public ConversionResult convertString​(java.lang.CharSequence input)
        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.