Enum Class ConstructorDetector.SingleArgConstructor

java.lang.Object
java.lang.Enum<ConstructorDetector.SingleArgConstructor>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.cfg.ConstructorDetector.SingleArgConstructor
All Implemented Interfaces:
Serializable, Comparable<ConstructorDetector.SingleArgConstructor>, java.lang.constant.Constable
Enclosing class:
ConstructorDetector

public static enum ConstructorDetector.SingleArgConstructor extends Enum<ConstructorDetector.SingleArgConstructor>
Definition of alternate handling modes of single-argument constructors that are annotated with JsonCreator but without "mode" definition (or explicit name for the argument): this is the case where two interpretations are possible -- "properties" (in which case the argument is named parameter of a JSON Object) and "delegating (in which case the argument maps to the whole JSON value).

Default choice is HEURISTIC (which is Jackson pre-2.12 always uses)

NOTE: does NOT have any effect if explicit @JsonCreator} annotation is required.

Since:
2.12
  • Enum Constant Details

  • Method Details

    • values

      public static ConstructorDetector.SingleArgConstructor[] 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 ConstructorDetector.SingleArgConstructor 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