protected class FieldAccessingSolutionCloner.FieldAccessingSolutionClonerRun extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Object> |
originalToCloneMap |
protected Queue<FieldAccessingSolutionCloner.Unprocessed> |
unprocessedQueue |
Modifier | Constructor and Description |
---|---|
protected |
FieldAccessingSolutionClonerRun() |
Modifier and Type | Method and Description |
---|---|
protected <C> C |
clone(C original) |
protected Object |
cloneArray(Class<?> expectedType,
Object originalArray) |
protected <E> Collection<E> |
cloneCollection(Class<?> expectedType,
Collection<E> originalCollection) |
protected <C> C |
cloneCollectionsElementIfNeeded(C original) |
protected <K,V> Map<K,V> |
cloneMap(Class<?> expectedType,
Map<K,V> originalMap) |
protected Solution_ |
cloneSolution(Solution_ originalSolution) |
protected <C> C |
constructClone(Class<C> clazz) |
protected <E> Collection<E> |
constructCloneCollection(Collection<E> originalCollection) |
protected <K,V> Map<K,V> |
constructCloneMap(Map<K,V> originalMap) |
protected <C> void |
copyFields(Class<C> clazz,
Class<? extends C> instanceClass,
C original,
C clone) |
protected Object |
getFieldValue(Object bean,
Field field) |
protected boolean |
isDeepCloneField(Field field,
Class<?> fieldInstanceClass,
Object originalValue) |
protected void |
process(FieldAccessingSolutionCloner.Unprocessed unprocessed) |
protected void |
processQueue() |
protected void |
setFieldValue(Object bean,
Field field,
Object value) |
protected void |
validateCloneSolution(Solution_ originalSolution,
Solution_ cloneSolution)
Fails fast if
FieldAccessingSolutionCloner.isFieldAnEntityPropertyOnSolution(java.lang.reflect.Field, java.lang.Class<?>) assumptions were wrong. |
protected Queue<FieldAccessingSolutionCloner.Unprocessed> unprocessedQueue
protected <C> C clone(C original)
protected <C> C constructClone(Class<C> clazz)
protected <C> void copyFields(Class<C> clazz, Class<? extends C> instanceClass, C original, C clone)
protected boolean isDeepCloneField(Field field, Class<?> fieldInstanceClass, Object originalValue)
protected void processQueue()
protected void process(FieldAccessingSolutionCloner.Unprocessed unprocessed)
protected <E> Collection<E> cloneCollection(Class<?> expectedType, Collection<E> originalCollection)
protected <E> Collection<E> constructCloneCollection(Collection<E> originalCollection)
protected <C> C cloneCollectionsElementIfNeeded(C original)
protected void validateCloneSolution(Solution_ originalSolution, Solution_ cloneSolution)
FieldAccessingSolutionCloner.isFieldAnEntityPropertyOnSolution(java.lang.reflect.Field, java.lang.Class<?>)
assumptions were wrong.originalSolution
- never nullcloneSolution
- never nullCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.