public class FieldAccessingSolutionCloner<SolutionG extends Solution> extends Object implements SolutionCloner<SolutionG>
Modifier and Type | Class and Description |
---|---|
protected class |
FieldAccessingSolutionCloner.FieldAccessingSolutionClonerRun |
protected static class |
FieldAccessingSolutionCloner.Unprocessed |
Modifier and Type | Field and Description |
---|---|
protected Map<Class,Constructor> |
constructorCache |
protected Map<Class,List<Field>> |
fieldListCache |
protected SolutionDescriptor |
solutionDescriptor |
Constructor and Description |
---|
FieldAccessingSolutionCloner(SolutionDescriptor solutionDescriptor) |
Modifier and Type | Method and Description |
---|---|
SolutionG |
cloneSolution(SolutionG originalSolution)
Does a planning clone.
|
protected <C> Constructor<C> |
retrieveCachedConstructor(Class<C> clazz) |
protected <C> List<Field> |
retrieveCachedFields(Class<C> clazz) |
protected final SolutionDescriptor solutionDescriptor
protected final Map<Class,Constructor> constructorCache
public FieldAccessingSolutionCloner(SolutionDescriptor solutionDescriptor)
public SolutionG cloneSolution(SolutionG originalSolution)
SolutionCloner
Solution
clone must fulfill these requirements:
original
.
Solution
,
the original Solution
must remain unchanged.cloneSolution
in interface SolutionCloner<SolutionG extends Solution>
originalSolution
- never null, the original Solution
Solution
protected <C> Constructor<C> retrieveCachedConstructor(Class<C> clazz) throws NoSuchMethodException
NoSuchMethodException
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.