Class SlardarJacksonProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = SlardarJacksonProp.Key) public class SlardarJacksonProp
The following will cause serialization and deserialization inconsistencies.
- Since:
2021-02-14
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic StringemptyDatepublic final static StringKey$emptyDatepublic intemptyDateOffsetpublic final static StringKey$emptyDateOffsetpublic final static StringKey$emptyListpublic final static StringKey$emptyMappublic final static StringKey$i18nResult
-
Constructor Summary
Constructors Constructor Description SlardarJacksonProp()
-
Method Summary
Modifier and Type Method Description StringgetEmptyDate()`empty` date is not output, empty means ignore this. voidsetEmptyDate(String emptyDate)`empty` date is not output, empty means ignore this. intgetEmptyDateOffset()considering the time zone offset, and the system time difference within plus or minus 12 hours, it is treated as `empty`. voidsetEmptyDateOffset(int emptyDateOffset)considering the time zone offset, and the system time difference within plus or minus 12 hours, it is treated as `empty`. booleanisEmptyList()whether to ouptut `empty` list. booleanisEmptyMap()whether to ouptut `empty` map, includes java.util. booleanisI18nResult()whether to handle message of I18nResult booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetEmptyList(boolean emptyList)whether to ouptut `empty` list. voidsetEmptyMap(boolean emptyMap)whether to ouptut `empty` map, includes java.util. voidsetI18nResult(boolean i18nResult)whether to handle message of I18nResult -
-
Method Detail
-
getEmptyDate
String getEmptyDate()
`empty` date is not output, empty means ignore this. support LocalDate, LocalDateTime, ZonedDateTime, OffsetDateTime, util.Date
-
setEmptyDate
void setEmptyDate(String emptyDate)
`empty` date is not output, empty means ignore this. support LocalDate, LocalDateTime, ZonedDateTime, OffsetDateTime, util.Date
-
getEmptyDateOffset
int getEmptyDateOffset()
considering the time zone offset, and the system time difference within plus or minus 12 hours, it is treated as `empty`.
-
setEmptyDateOffset
void setEmptyDateOffset(int emptyDateOffset)
considering the time zone offset, and the system time difference within plus or minus 12 hours, it is treated as `empty`.
-
isEmptyList
boolean isEmptyList()
whether to ouptut `empty` list. Includes `empty` of Array and java.util.Collection. disabled by default for 3rd unfriendly. eg. spring-boot-admin's js use `.length` and `key` to check value existence.
-
isEmptyMap
boolean isEmptyMap()
whether to ouptut `empty` map, includes java.util.Map
-
isI18nResult
boolean isI18nResult()
whether to handle message of I18nResult
-
hashCode
int hashCode()
-
setEmptyList
void setEmptyList(boolean emptyList)
whether to ouptut `empty` list. Includes `empty` of Array and java.util.Collection. disabled by default for 3rd unfriendly. eg. spring-boot-admin's js use `.length` and `key` to check value existence.
-
setEmptyMap
void setEmptyMap(boolean emptyMap)
whether to ouptut `empty` map, includes java.util.Map
-
setI18nResult
void setI18nResult(boolean i18nResult)
whether to handle message of I18nResult
-
-
-
-