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

org.simpleflatmapper.map.setter.ContextualSetterOnGetter Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.map.setter;

import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.reflect.Getter;

public class ContextualSetterOnGetter implements ContextualSetter {
    private final Getter getter;
    private final ContextualSetter setter;

    public ContextualSetterOnGetter(ContextualSetter setter, Getter getter) {
        this.setter = setter;
        this.getter = getter;
    }

    @Override
    public void set(T target, P value, Context context) throws Exception {
        setter.set(target, getter.get(value), context);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy