Interface DefaultValueConverter<TYPE>

Type Parameters:
TYPE - the argument type

public interface DefaultValueConverter<TYPE>
Converts default values from String to an argument object of a specific type.

Converters are discovered automatically

Implementations must declare a public no-args constructor.

An implementation may be annotated with Priority. If multiple converters of the same priority exist for a specific argument type, then only the converter with highest priority is registered.

See Also:
  • ToolArg#defaultValue()
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(String defaultValue)
     
  • Method Details

    • convert

      TYPE convert(String defaultValue)
      Parameters:
      defaultValue - (must not be null)
      Returns:
      the converted object