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

com.wizzardo.tools.reflection.field.DoubleUnsafeGetterSetter Maven / Gradle / Ivy

There is a newer version: 0.23
Show newest version
package com.wizzardo.tools.reflection.field;

import java.lang.reflect.Field;

/**
 * Created by wizzardo on 28.07.15.
 */
public class DoubleUnsafeGetterSetter extends AbstractGetterSetter {

    public DoubleUnsafeGetterSetter(Field field) {
        super(field);
    }

    @Override
    public double getDouble(Object object) {
        return unsafe.getDouble(object, offset);
    }

    @Override
    public void setDouble(Object object, double value) {
        unsafe.putDouble(object, offset, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy