[Java] Enum AutoCloneStyle
- groovy.transform.AutoCloneStyle
public enum AutoCloneStyle extends Enum
Intended style to use for cloning when using the @
AutoClone annotation.
- Since:
- 1.8.0
- See Also:
- AutoClone
Enum Constants Summary
Enum constant | Description |
---|---|
CLONE | Uses only cloning. |
COPY_CONSTRUCTOR | Uses the copy constructor pattern. |
SERIALIZATION | Uses serialization to clone. |
SIMPLE | Uses the no-arg constructor followed by property/field copying/cloning. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Enum | name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll |
Enum Constant Detail
public AutoCloneStyle CLONE
Uses only cloning.
public AutoCloneStyle COPY_CONSTRUCTOR
Uses the copy constructor pattern.
public AutoCloneStyle SERIALIZATION
Uses serialization to clone.
public AutoCloneStyle SIMPLE
Uses the no-arg constructor followed by property/field copying/cloning.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/transform/AutoCloneStyle.html