Package org.opt4j.operator.copy
Class CopyList
java.lang.Object
org.opt4j.operator.copy.CopyList
- All Implemented Interfaces:
Operator<ListGenotype<?>>
,Copy<ListGenotype<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionListGenotype<?>
copy
(ListGenotype<?> genotype) Copies aGenotype
.
-
Constructor Details
-
CopyList
public CopyList()
-
-
Method Details
-
copy
Description copied from interface:Copy
Copies aGenotype
. This operation is a deep copy whereas unit elements are not cloned.- Specified by:
copy
in interfaceCopy<ListGenotype<?>>
- Parameters:
genotype
- the genotype to copy- Returns:
- the copy of the genotype
-