Enum AssignmentType

java.lang.Object
java.lang.Enum<AssignmentType>
org.instancio.settings.AssignmentType
All Implemented Interfaces:
Serializable, Comparable<AssignmentType>, java.lang.constant.Constable

@ExperimentalApi public enum AssignmentType extends Enum<AssignmentType>
A setting that specifies whether objects should be populated via fields or methods.
Since:
2.1.0
See Also:
  • Enum Constant Details

    • FIELD

      public static final AssignmentType FIELD
      Indicates that values should be assigned directly to fields, bypassing setters (default behaviour).
    • METHOD

      public static final AssignmentType METHOD
      Indicates that values should be set via setter methods.
  • Method Details

    • values

      public static AssignmentType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AssignmentType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AssignmentType>