https://kotlinlang.org logo
Title
v

ValV

10/09/2018, 9:20 AM
How can I marshal
ObservableList<ObservableList<ObservableValue<Any>>>
? Do I need inherit and annotate it? Are there better (Kotlin-specific) ways to marshal an object?
h

hudsonb

10/09/2018, 11:07 AM
Marshal to what? Do you mean serialize? If so,
ObservableList
doesn't implement
Serializable
... and neither does anything else in that declaration.
v

ValV

10/09/2018, 11:29 AM
Yep, I've just discovered it. So what is the simple way to save state of an object (e.g.
TableView
)? I'm new to this concept, but need to implement serialization/marshalling, and, pehaps, save it into XML database or just into a file
n

Nikky

10/09/2018, 11:37 AM
#serialization
you probably want to turn the observable list into a normal list first and then feed it into eg. jackson