程序包 com.volcengine

类 JSON.LocalDateTypeAdapter

  • 封闭类:
    JSON

    public class JSON.LocalDateTypeAdapter
    extends com.google.gson.TypeAdapter<org.threeten.bp.LocalDate>
    Gson TypeAdapter for JSR310 LocalDate type
    • 构造器详细资料

      • LocalDateTypeAdapter

        public LocalDateTypeAdapter()
      • LocalDateTypeAdapter

        public LocalDateTypeAdapter​(org.threeten.bp.format.DateTimeFormatter formatter)
    • 方法详细资料

      • setFormat

        public void setFormat​(org.threeten.bp.format.DateTimeFormatter dateFormat)
      • write

        public void write​(com.google.gson.stream.JsonWriter out,
                          org.threeten.bp.LocalDate date)
                   throws IOException
        指定者:
        write 在类中 com.google.gson.TypeAdapter<org.threeten.bp.LocalDate>
        抛出:
        IOException
      • read

        public org.threeten.bp.LocalDate read​(com.google.gson.stream.JsonReader in)
                                       throws IOException
        指定者:
        read 在类中 com.google.gson.TypeAdapter<org.threeten.bp.LocalDate>
        抛出:
        IOException