Class CopyList

java.lang.Object
org.opt4j.operators.copy.CopyList
All Implemented Interfaces:
Operator<ListGenotype<?>>, Copy<ListGenotype<?>>

public class CopyList extends Object implements Copy<ListGenotype<?>>
Copy operator for plain lists like BooleanGenotype, DoubleGenotype, and PermutationGenotype.
  • Constructor Details

  • Method Details

    • copy

      public ListGenotype<?> copy(ListGenotype<?> genotype)
      Description copied from interface: Copy
      Copies a Genotype. This operation is a deep copy whereas unit elements are not cloned.
      Specified by:
      copy in interface Copy<ListGenotype<?>>
      Parameters:
      genotype - the genotype to copy
      Returns:
      the copy of the genotype