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 Tconvert(String s)Converts the value to a string.default Tconvert(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.StringToValueConverts the value to a string.- Specified by:
convertin interfaceStringToValueConverter.StringToValue<T>- Parameters:
s- Value to convert from.sdkField-SdkFieldcontaining metadata about the member being unmarshalled.- Returns:
- Unmarshalled value.
-
-