Package org.opt4j.operator.copy
Class CopyList
- java.lang.Object
-
- org.opt4j.operator.copy.CopyList
-
- All Implemented Interfaces:
Operator<ListGenotype<?>>
,Copy<ListGenotype<?>>
public class CopyList extends Object implements Copy<ListGenotype<?>>
-
-
Constructor Summary
Constructors Constructor Description CopyList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListGenotype<?>
copy(ListGenotype<?> genotype)
Copies aGenotype
.
-
-
-
Method Detail
-
copy
public ListGenotype<?> copy(ListGenotype<?> genotype)
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
-
-