Class IdentityConverter

  • All Implemented Interfaces:
    com.github.dozermapper.core.CustomConverter

    public class IdentityConverter
    extends Object
    implements com.github.dozermapper.core.CustomConverter
    Dozer CustomConverter that returns the original source object reference (identity conversion).
    • Constructor Detail

      • IdentityConverter

        public IdentityConverter()
        The constructor.
    • Method Detail

      • convert

        public Object convert​(Object destination,
                              Object source,
                              Class<?> destinationClass,
                              Class<?> sourceClass)
        Specified by:
        convert in interface com.github.dozermapper.core.CustomConverter