public interface EntityMergeHook extends Hook
Modifier and Type | Method and Description |
---|---|
boolean |
consumes(java.lang.Object oldInstance,
java.lang.Object newInstance)
Decides if the hook can merge the two entities
|
void |
mergeEntity(java.lang.Object oldInstance,
java.lang.Object newInstance)
Performs the merge of two entities
|
boolean consumes(java.lang.Object oldInstance, java.lang.Object newInstance)
oldInstance
- the object to be mergednewInstance
- the object with the target valuesvoid mergeEntity(java.lang.Object oldInstance, java.lang.Object newInstance) throws java.lang.IllegalAccessException
oldInstance
- the object to be mergednewInstance
- the object with the target valuesjava.lang.IllegalAccessException
- if the merging of fields failed