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

arp.repository.copy.BooleanArrayFieldCopier Maven / Gradle / Ivy

The newest version!
package arp.repository.copy;

import java.lang.reflect.Field;

import arp.util.Unsafe;

public class BooleanArrayFieldCopier extends BaseFieldCopier {

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

	@Override
	public void copyField(Object fromEntity, Object toEntity) {
		boolean[] array = (boolean[]) Unsafe.getObjectFieldOfObject(fromEntity, fieldOffset);
		Unsafe.setObjectFieldOfObject(toEntity, fieldOffset, array.clone());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy