Package org.moeaframework.core
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
-
Method Details
-
copy
T copy()Creates and returns a copy of this object. It is required thatx.copy()
is completely independent fromx
. This means any method invoked onx.copy()
in no way alters the state ofx
and vice versa. It is typically the case thatx.copy().getClass() == x.getClass()
andx.copy().equals(x)
.- Returns:
- the copy
-