In Java I have a java.util.Properties object and I want to obtain another one with the same pairs but keys converted to values and viceversa.
java.util.Properties
If there are c
You can consider using a BiMap by google collections which is essentially a reversable Map. It guarantees uniquness of keys as well as values.
Check it out here. This is the API