Enum Class JsonDiff.DiffType

java.lang.Object
java.lang.Enum<JsonDiff.DiffType>
cloud.opencode.base.json.diff.JsonDiff.DiffType
All Implemented Interfaces:
Serializable, Comparable<JsonDiff.DiffType>, Constable
Enclosing class:
JsonDiff

public static enum JsonDiff.DiffType extends Enum<JsonDiff.DiffType>
Type of difference 差异类型
Since:
JDK 25, opencode-base-json V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • ADDED

      public static final JsonDiff.DiffType ADDED
      Value was added - 值被添加
    • REMOVED

      public static final JsonDiff.DiffType REMOVED
      Value was removed - 值被移除
    • CHANGED

      public static final JsonDiff.DiffType CHANGED
      Value was changed - 值被更改
    • TYPE_CHANGED

      public static final JsonDiff.DiffType TYPE_CHANGED
      Type was changed - 类型被更改
  • Method Details

    • values

      public static JsonDiff.DiffType[] 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 JsonDiff.DiffType 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