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