Interface IValueConverter<T>

Type Parameters:
T - type of result object
All Known Implementing Classes:
AbstractPatternBasedConverter, ClassNameToInstanceConverter, DoubleConverter, LocalDateConverter, LocalDateTimeConverter, LocalTimeConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IValueConverter<T>
Interface implemented by all value converters to convert a given String to the proper object type.
Since:
1.0.0 - 2022-05-05
Author:
David M., Markus S.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(String _string)
    Called to convert command line argument String to specified type.
  • Method Details

    • convert

      T convert(String _string)
      Called to convert command line argument String to specified type.
      Parameters:
      _string - input string, maybe empty/blank, never null
      Returns:
      converted value, never null
      Throws:
      RuntimeException - (e.g. CommandLineException) when parsing fails