All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.happy3w.toolkits.convert.DelegateTci Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package com.happy3w.toolkits.convert;

import lombok.Getter;

import java.util.function.Function;

public class DelegateTci extends AbstractTci {
    @Getter
    private Function converter;
    public DelegateTci(Class sourceType, Class targetType, Function converter) {
        super(sourceType, targetType);
        this.converter = converter;
    }

    @Override
    public T toTarget(S source) {
        return converter.apply(source);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy