Enum Class ChangeType
- All Implemented Interfaces:
Serializable, Comparable<ChangeType>, Constable
Change Type Enum - Describes the type of change between two object properties
变更类型枚举 - 描述两个对象属性之间的变更类型
Used by ObjectDiff to classify each property difference.
由 ObjectDiff 使用,用于分类每个属性差异。
ADDED- Property exists only in the new object | 属性仅存在于新对象中REMOVED- Property exists only in the old object | 属性仅存在于旧对象中MODIFIED- Property value changed | 属性值已修改UNCHANGED- Property value is the same | 属性值相同CIRCULAR_REFERENCE- Circular reference detected | 检测到循环引用
- Since:
- JDK 25, opencode-base-core V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProperty exists only in the new object 属性仅存在于新对象中Circular reference detected during deep comparison 深度比较时检测到循环引用Property value changed 属性值已修改Property exists only in the old object 属性仅存在于旧对象中Property value is the same 属性值相同 -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTypeReturns the enum constant of this class with the specified name.static ChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDED
Property exists only in the new object 属性仅存在于新对象中 -
REMOVED
Property exists only in the old object 属性仅存在于旧对象中 -
MODIFIED
Property value changed 属性值已修改 -
UNCHANGED
Property value is the same 属性值相同 -
CIRCULAR_REFERENCE
Circular reference detected during deep comparison 深度比较时检测到循环引用
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-