Enum Class ChangeType

java.lang.Object
java.lang.Enum<ChangeType>
cloud.opencode.base.core.bean.ChangeType
All Implemented Interfaces:
Serializable, Comparable<ChangeType>, Constable

public enum ChangeType extends Enum<ChangeType>
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:
  • Enum Constant Details

    • ADDED

      public static final ChangeType ADDED
      Property exists only in the new object 属性仅存在于新对象中
    • REMOVED

      public static final ChangeType REMOVED
      Property exists only in the old object 属性仅存在于旧对象中
    • MODIFIED

      public static final ChangeType MODIFIED
      Property value changed 属性值已修改
    • UNCHANGED

      public static final ChangeType UNCHANGED
      Property value is the same 属性值相同
    • CIRCULAR_REFERENCE

      public static final ChangeType CIRCULAR_REFERENCE
      Circular reference detected during deep comparison 深度比较时检测到循环引用
  • Method Details

    • values

      public static ChangeType[] 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

      public static ChangeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null