Package org.pkl.config.java.mapper
Interface Converter<S,T>
-
- Type Parameters:
S- the converter's source typeT- the converter's target type
- 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 Converter<S,T>Converter for a particular source and target type.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Tconvert(S value, ValueMapper valueMapper)Converts the given value.static <S> Converter<S,S>identity()Returns an identity converter for the requested type.
-
-
-
Method Detail
-
convert
T convert(S value, ValueMapper valueMapper)
Converts the given value. The givenValueMappercan be used to convert nested values of composite values (objects, collections, etc.).
-
identity
static <S> Converter<S,S> identity()
Returns an identity converter for the requested type.
-
-