Class ConstructorInvokingValueConverter<V>
java.lang.Object
joptsimple.internal.ConstructorInvokingValueConverter<V>
- Type Parameters:
V- constraint on the type of values being converted to
- All Implemented Interfaces:
ValueConverter<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the given string value into a Java type.Gives a string that describes the pattern of the values this converter expects, if any.Gives the class of the type of values this converter converts to.
-
Field Details
-
ctor
-
-
Constructor Details
-
ConstructorInvokingValueConverter
ConstructorInvokingValueConverter(Constructor<V> ctor)
-
-
Method Details
-
convert
Description copied from interface:ValueConverterConverts the given string value into a Java type.- Specified by:
convertin interfaceValueConverter<V>- Parameters:
value- the string to convert- Returns:
- the converted value
-
valueType
Description copied from interface:ValueConverterGives the class of the type of values this converter converts to.- Specified by:
valueTypein interfaceValueConverter<V>- Returns:
- the target class for conversion
-
valuePattern
Description copied from interface:ValueConverterGives a string that describes the pattern of the values this converter expects, if any. For example, a date converter can respond with adate format string.- Specified by:
valuePatternin interfaceValueConverter<V>- Returns:
- a value pattern, or
nullif there's nothing interesting here
-