Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-10-08T09:14:59Z by BoudewijnDijkstra
MaitreBart
MaitreBart
67 Posts
ACCEPTED ANSWER

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
    MaitreBart
    67 Posts
    ACCEPTED ANSWER

    Re: OMUMap unicity

    ‏2012-10-05T14:05:13Z  in response to MaitreBart
    Nobody knows/using it in this forums?
  • BoudewijnDijkstra
    BoudewijnDijkstra
    20 Posts
    ACCEPTED ANSWER

    Re: OMUMap unicity

    ‏2012-10-08T09:14:59Z  in response to MaitreBart
    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.