• 2 replies
  • Latest Post - ‏2012-10-08T09:14:59Z by BoudewijnDijkstra
76 Posts

Pinned topic OMUMap unicity

‏2012-09-18T13:14:53Z |
Are the items in an OMUMap (or OMMap as well) unique wrt the keys or they can be duplicated with the same key?

In other words, what happen if I call the add() method with a key that already exists in the OMUMap?

Will the add() be aborted or will an item with the same key coexist in the map?
Updated on 2012-10-08T09:14:59Z at 2012-10-08T09:14:59Z by BoudewijnDijkstra
  • MaitreBart
    76 Posts

    Re: OMUMap unicity

    Nobody knows/using it in this forums?
  • BoudewijnDijkstra
    20 Posts

    Re: OMUMap unicity

    You have the source code so you could have looked yourself. That said, it looks like an add() will always add something, so it is possible that multiple elements have the same key.