I have a list of strings and I have a function to generate a value for each key in the list.
I want to create a map using this function. Can I do this with Google collec
Using Guava + Lambda
Map map = Maps.uniqueIndex(YourList, YourCustomClass -> YourCustomClass.getKey());