This question already has answers here: 开发者_运维知识库 Grabbing snapshots from webcams in ruby
Can you use an instance initializer with a generic HashMap? I found this code online, but am having trouble converting it to a generic HashMap instead of a basic HashMap:
I have some static initializer code: someMethodThatTakesAHashMap(new HashMap<K, V>() { { put(\"a\",\"value-a\");