Interface Converter<S,​T>

  • Type Parameters:
    S - the converter's source type
    T - 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 Detail

      • convert

        T convert​(S value,
                  ValueMapper valueMapper)
        Converts the given value. The given ValueMapper can 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.