1

I have class RowReader containing couple of SimpleIntegerProperty.

I would like to save state of objects. Serialization would be great, but SimpleIntegerProperty is not serializable.

RowReader has only integer attributes so I can create new class having list attributes and serialize it. After deserialization I can create RowReader object and initialize it using integer values from list.

This looks like a lot of work and doesn't look nice (it's not only 1 class to save that way). Is there other way?

My question is: How should I save SimpleIntegerProperty values to file?

Pochmurnik
  • 780
  • 6
  • 18
  • 35
  • It's unclear what you asking, could you provide a minimal example ? – Victor Gubin Sep 11 '19 at 08:37
  • 2
    What's the problem with just writing out the values of the integer properties. – mipa Sep 11 '19 at 08:39
  • 4
    You need something like this https://stackoverflow.com/questions/18791566/notserializableexception-on-simplelistproperty see answer from Elloco – Raw Sep 11 '19 at 08:40

0 Answers0