P
Philipp
Dear all,
My app can load files using a FileChooser. I would like to store the
last 4 loaded file pathes so I can use them later (ie fast access to
last used files). I'm looking for the perfect Collection to store these
4 File objects.
I think it should have the following properties
1. no duplicate objects
2. knowing the insert order (so you know which was last entered)
3. limited size (4 objects) and throwing out the oldest entry when
inserting a new one (like a ring buffer maybe)
Is there such a Collection already or do I have to homecook one?
Thanks for your answers
Phil
PS: Is there a summary table on the web with all properties of the
standard subclasses of Collection and Map?
My app can load files using a FileChooser. I would like to store the
last 4 loaded file pathes so I can use them later (ie fast access to
last used files). I'm looking for the perfect Collection to store these
4 File objects.
I think it should have the following properties
1. no duplicate objects
2. knowing the insert order (so you know which was last entered)
3. limited size (4 objects) and throwing out the oldest entry when
inserting a new one (like a ring buffer maybe)
Is there such a Collection already or do I have to homecook one?
Thanks for your answers
Phil
PS: Is there a summary table on the web with all properties of the
standard subclasses of Collection and Map?