Enum Class JsonInclude.IncludeType

java.lang.Object
java.lang.Enum<JsonInclude.IncludeType>
ru.tinkoff.kora.json.common.annotation.JsonInclude.IncludeType
All Implemented Interfaces:
Serializable, Comparable<JsonInclude.IncludeType>, Constable
Enclosing class:
JsonInclude

public static enum JsonInclude.IncludeType extends Enum<JsonInclude.IncludeType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Русский: Указывает что значение должно быть всегда сериализовано (не влияет на JsonNullable) English: Specifies that the value should always be serialized (doesn't affect JsonNullable)
    Русский: Указывает, что значение должно быть сериализовано если оно не равно null и не является пустым.
    Русский: Указывает что значение должно быть сериализовано если оно не равно null (не влияет на JsonNullable) English: Indicates that the value should be serialized if it is non-null (doesn't affect JsonNullable)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALWAYS

      public static final JsonInclude.IncludeType ALWAYS
      Русский: Указывает что значение должно быть всегда сериализовано (не влияет на JsonNullable)
      English: Specifies that the value should always be serialized (doesn't affect JsonNullable)
    • NON_NULL

      public static final JsonInclude.IncludeType NON_NULL
      Русский: Указывает что значение должно быть сериализовано если оно не равно null (не влияет на JsonNullable)
      English: Indicates that the value should be serialized if it is non-null (doesn't affect JsonNullable)
    • NON_EMPTY

      public static final JsonInclude.IncludeType NON_EMPTY
      Русский: Указывает, что значение должно быть сериализовано если оно не равно null и не является пустым. (применяется к JsonNullable)

      Примечание: Может применяться ТОЛЬКО в тех случаях, когда есть возможность проверить тип Collection или Map во время компиляции. Если тип является общим, эта проверка не может быть применена.


      English: Value that indicates that only properties with null value, or what is considered empty, are not to be included. (affects JsonNullable)

      Note: Can be applied ONLY to when it is possible to check Collection or Map type in compile time If type is generic this check can't be applied

  • Method Details

    • values

      public static JsonInclude.IncludeType[] 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 JsonInclude.IncludeType 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