Module com.speedment.common.codegen
Interface HasCopy<T extends HasCopy<T>>
-
- Type Parameters:
T- the extending type
- All Known Subinterfaces:
Annotation,AnnotationUsage,AnonymousValue,ArrayValue,BooleanValue,Class,ClassOrInterface<T>,Constructor,Enum,EnumConstant,EnumValue,Field,File,Generic,Import,Initializer,Interface,InterfaceField,InterfaceMethod,InvocationValue,Javadoc,JavadocTag,LicenseTerm,Method,NullValue,NumberValue,ReferenceValue,TextValue,Value<V>
- All Known Implementing Classes:
DefaultAnnotationUsage,DefaultJavadocTag,Modifier
public interface HasCopy<T extends HasCopy<T>>Trait for code generator models that can be deep-copied. If the model implementing this trait also implementsHasParent, then the parent property will not be copied.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcopy()Create a deep copy of this model if it is mutable.
-