The best way to process lists in the closet (android library)

The cabinet ( https://bitbucket.org/qbusict/cupboard ) is a very convenient library, but, unfortunately, it does not support display lists in the database, and the lists must be processed manually. But what is the way to deal with them?

+5
source share
2 answers

You can let the cabinet serialize for you using FieldConverter . I recently released a cupboard-tools project that contains a FieldConverter that uses Gson to serialize and deserialize lists or other objects.

+5
source

Serializing lists in json and storing them as strings seems to be the best solution.

0
source

Source: https://habr.com/ru/post/1207360/


All Articles