Hi all
I'm a complete
Java newbie coming from Python.
I would like advice please on a suitable structure to model the following situation.
A 'Box' contains an unlimited number of named 'Envelopes'.
Each 'Envelope' contains an unlimited number of 'RecordCards.
Each 'RecordCard' has a limited number (5) of DataItems.
Requirements.
A Box will be able to add and remove Envelopes.
An Envelope will be able to add and remove RecordCards
RecordCards will be able to change data held in the data items.
Data can be accessed using [Evelope][RecordCard][DataItems]
The Box can be serialized for persistence.
This is easily done in Python using Lists (which can hold mixed types) and the pickle methods for serialization but I would like to do it in Java for easy cross-platform distribution.
Any guidance would be very welcome
Thanks in advance
John