Guava: Set + Function = Map?
Creating a Map from a Set and a Function Here are two classes that should each do the job. The first just shows a map view of the set, while the second can write values back to the set through a special interface. Call Syntax: Map<K,V> immutable = new SetBackedMap<K,V>(Set<K> keys, Function<K,V> func); Map<K,V> mutable … Read more