For example I have this:
{[dificultad, adios]=["baja", "a"],
[dificultad, adios]=["baja", "a"],
[dificultad, adios]=["alta", "abckdk"]}
that is, a Map<List<String>, List<String>>
, what I want to do and I can't do is, for example, if in the map, if there are identical keys and values that are deleted and there is only one element of them.
Expected output:
{[dificultad, adios]=["baja", "a"], [dificultad, adios]=["alta", "abckdk"]}
Let's see if it serves as an example
It does not correspond exactly to your problem, since I would be missing the classes to be able to complete your code, but it is an example that can give you an idea of how to approach it
I limit myself to using a two String value key HashMap, with a duplicate value, since the key of a HashMap has to be unique. In your case you don't use a simple HashMap key value, so it allows you to have duplicate keys.
I put the code