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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionРусский: Указывает что значение должно быть всегда сериализовано (не влияет наJsonNullable) English: Specifies that the value should always be serialized (doesn't affectJsonNullable)Русский: Указывает, что значение должно быть сериализовано если оно не равно null и не является пустым.Русский: Указывает что значение должно быть сериализовано если оно не равно null (не влияет наJsonNullable) English: Indicates that the value should be serialized if it is non-null (doesn't affectJsonNullable) -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonInclude.IncludeTypeReturns the enum constant of this class with the specified name.static JsonInclude.IncludeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Русский: Указывает что значение должно быть всегда сериализовано (не влияет наJsonNullable)
English: Specifies that the value should always be serialized (doesn't affectJsonNullable) -
NON_NULL
Русский: Указывает что значение должно быть сериализовано если оно не равно null (не влияет наJsonNullable)
English: Indicates that the value should be serialized if it is non-null (doesn't affectJsonNullable) -
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. (affectsJsonNullable)Note: Can be applied ONLY to when it is possible to check
CollectionorMaptype in compile time If type is generic this check can't be applied
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-