Class JSON.SqlDateTypeAdapter

  • Enclosing class:
    JSON

    public static class JSON.SqlDateTypeAdapter
    extends TypeAdapter<java.sql.Date>
    Gson TypeAdapter for java.sql.Date type If the dateFormat is null, a simple "yyyy-MM-dd" format will be used (more efficient than SimpleDateFormat).
    • Constructor Detail

      • SqlDateTypeAdapter

        public SqlDateTypeAdapter()
      • SqlDateTypeAdapter

        public SqlDateTypeAdapter​(DateFormat dateFormat)