We have main ORM object stored in ItemCollection class, where you can find HashMap based on
ItemCollection
HashMap < ProductsEnum, ListOfItems >, where ProductsEnum is Enum holding products from online shop.
HashMap < ProductsEnum, ListOfItems >
MapOfItems class contains HashMap of all objects related to selected enum. which has methods getSortedList or other, which returns List of items
MapOfItems
getSortedList
List
items
ItemObject class is the main object storing data of each product.Has method getCheapestItem which return cheapest weight/price of object.
ItemObject
getCheapestItem