Class SlardarJacksonProp

  • All Implemented Interfaces:

    @ConfigurationProperties(value = SlardarJacksonProp.Key) 
    public class SlardarJacksonProp
    
                        

    The following will cause serialization and deserialization inconsistencies.

    Since:

    2021-02-14

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getEmptyDate() `empty` date is not output, empty means ignore this.
      void setEmptyDate(String emptyDate) `empty` date is not output, empty means ignore this.
      int getEmptyDateOffset() considering the time zone offset, and the system time difference within plus or minus 12 hours, it is treated as `empty`.
      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`.
      boolean isEmptyList() whether to ouptut `empty` list.
      boolean isEmptyMap() whether to ouptut `empty` map, includes java.util.
      boolean isI18nResult() whether to handle message of I18nResult
      boolean equals(@Nullable() Object o)
      int hashCode()
      String toString()
      void setEmptyList(boolean emptyList) whether to ouptut `empty` list.
      void setEmptyMap(boolean emptyMap) whether to ouptut `empty` map, includes java.util.
      void setI18nResult(boolean i18nResult) whether to handle message of I18nResult
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SlardarJacksonProp

        SlardarJacksonProp()
    • 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

      • 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