Interface StringToValueConverter.SimpleStringToValue<T>
-
- Type Parameters:
T
- Type to convert to.
- All Superinterfaces:
StringToValueConverter.StringToValue<T>
- Enclosing class:
- StringToValueConverter
- 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 static interface StringToValueConverter.SimpleStringToValue<T> extends StringToValueConverter.StringToValue<T>
Simple interface to convert a String to another type. Useful for implementations that don't need theSdkField
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
convert(String s)
Converts the value to a string.default T
convert(String s, SdkField<T> sdkField)
Converts the value to a string.
-
-
-
Method Detail
-
convert
default T convert(String s, SdkField<T> sdkField)
Description copied from interface:StringToValueConverter.StringToValue
Converts the value to a string.- Specified by:
convert
in interfaceStringToValueConverter.StringToValue<T>
- Parameters:
s
- Value to convert from.sdkField
-SdkField
containing metadata about the member being unmarshalled.- Returns:
- Unmarshalled value.
-
-