org.simpleflatmapper.reflect.getter.ConstantGetter Maven / Gradle / Ivy
package org.simpleflatmapper.reflect.getter;
import org.simpleflatmapper.reflect.Getter;
public class ConstantGetter implements Getter {
private final P value;
public ConstantGetter(P value) {
this.value = value;
}
@Override
public P get(T target) {
return value;
}
}