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

com.wizzardo.tools.reflection.field.BooleanUnsafeGetterSetter 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 BooleanUnsafeGetterSetter extends AbstractGetterSetter {

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

    @Override
    public boolean getBoolean(Object object) {
        return unsafe.getBoolean(object, offset);
    }

    @Override
    public void setBoolean(Object object, boolean value) {
        unsafe.putBoolean(object, offset, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy