com.happy3w.toolkits.convert.DelegateTci Maven / Gradle / Ivy
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