What is the best implementation of the Collection interface for implementing an inventory class?
For example, a stock of grocery products.
My scenario is as follows:
A stock management system from a supermarket, this collection would make the products database pepel, storing the amount of items that the stock still holds for a particular product. You can not have duplicate items. As for ordination, I do not know if it is necessary or not.