For each key in Guava multiplayer, I need to take the appropriate values ββand create pairs with them that are independent of order. The uniqueness of pairs does not depend on the order in which pairs are created inside the key. [A, B] = [B, A]. If the pair [B, A] is in a different key, then this should be considered as another pair. I don't know how to iterate over the values ββso that I can print out pairs that are not order dependent. I'm not sure how to index it. For arrays, I could just use a double loop.
Here is an example of a multimap:
BE0004429: [DB00515, DB00951, DB01582]
BE0000059: [DB00603, DB01285]
BE0001052: [DB00366, DB00472, DB00856, DB01104, DB01149]
I want to take this data and change it in this format. Look carefully, I'm trying to take the values ββof each key and make pairs.
I want to take the first value in each key and compare it with other values. Take the second value and connect it to the value after. There are no more unique pairs yet.
DB00515, DB00951
DB00515, DB01582
DB01582, DB00951
DB00603, DB01285
DB00366, DB00472
DB00366, DB00856
DB00366, DB01104
DB00366, DB01149
DB00472, DB00856
DB00472, DB01104
DB00472, DB01149
DB00856, DB01104
DB00856, DB01149
DB01104, DB01149