Adding Container types like Seq, List, Option, and Map to shapeless generic conversion

牧云@^-^@ 提交于 2019-12-06 00:20:22

问题


In order to complete the series of questions that I've asked about conversion of case class to/from Map[String, Any] in 1 and 2, I wanted to know how can one extend those answers mentioned above to work with container types, specially:

  • Option
  • Seq
  • Set
  • Map
  • Tuples

In both case of case class from and to Map[String, Any]

来源:https://stackoverflow.com/questions/31736369/adding-container-types-like-seq-list-option-and-map-to-shapeless-generic-conv

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!