Enum Class CopyOption

java.lang.Object
java.lang.Enum<CopyOption>
com.sure.tool.bean.CopyOption
All Implemented Interfaces:
Serializable, Comparable<CopyOption>, Constable

public enum CopyOption extends Enum<CopyOption>
属性拷贝行为选项(BeanCopier)。
Since:
1.18.0
  • Enum Constant Details

    • IGNORE_NULL

      public static final CopyOption IGNORE_NULL
      源属性值为 null 时跳过,不覆盖目标属性(默认覆盖)。
    • IGNORE_READONLY

      public static final CopyOption IGNORE_READONLY
      目标属性只读时跳过(默认抛 CopyException 提示漏拷)。
    • DEEP

      public static final CopyOption DEEP
      深拷贝:嵌套 Bean / 集合 / 数组递归拷贝为新对象(默认浅拷贝)。
  • Method Details

    • values

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