org.simpleflatmapper.reflect.primitive.DoubleFieldSetter Maven / Gradle / Ivy
package org.simpleflatmapper.reflect.primitive;
import java.lang.reflect.Field;
public final class DoubleFieldSetter implements DoubleSetter {
private final Field field;
public DoubleFieldSetter(final Field field) {
this.field = field;
}
@Override
public void setDouble(final T target, final double value) throws IllegalArgumentException, IllegalAccessException {
field.setDouble(target, value);
}
@Override
public String toString() {
return "DoubleFieldSetter{" +
"field=" + field +
'}';
}
}