Why, within the collections hierarchy, does map not implement the collections interface like set, list and queue do?
e.g in this diagram:
Why, within the collections hierarchy, does map not implement the collections interface like set, list and queue do?
e.g in this diagram:
Because unlike Lists and Sets, they're built on key-value pairs. The collection interface only has methods to interact with a unique object at a time, not a key-value pair.