Interface Copyable<T>

Type Parameters:
T - the type of this object
All Known Subinterfaces:
Constraint, Objective, Variable
All Known Implementing Classes:
AbstractConstraint, AbstractObjective, AbstractVariable, AdaptiveGridArchive, Between, BinaryIntegerVariable, BinaryVariable, BoundedConstraint, EpsilonBoxDominanceArchive, Equal, FitnessBasedArchive, FutureSolution, Grammar, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Maximize, Minimize, MSOPSRankedPopulation, NondominatedPopulation, NondominatedSortingPopulation, NormalizedObjective, NotEqual, Outside, Permutation, Population, Program, RealVariable, ReferencePointNondominatedSortingPopulation, ReferenceVectorGuidedPopulation, Solution, Subset, ThresholdConstraint

public interface Copyable<T>
Interface for objects that can be copied.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates and returns a copy of this object.
  • Method Details

    • copy

      T copy()
      Creates and returns a copy of this object. It is required that x.copy() is completely independent from x. This means any method invoked on x.copy() in no way alters the state of x and vice versa. It is typically the case that x.copy().getClass() == x.getClass() and x.copy().equals(x).
      Returns:
      the copy