Quick prototyping in Groovy with “Convert Map to Class” intention
April 19th, 2011 by Maxim MedvedevSometimes it is helpful to use a Map for fast prototyping of classes with some properties but without any logic. But in the end it would be nice to have a real class. In IntelliJ IDEA you can get it by invoking “Convert Map to Class” intention on a map.

You only need to type a name and a package for a new class:

And you’ll get something like this…

Quick and easy, right?
It is not something new, it’s been in IntelliJ IDEA for a while already. We just felt you might not be aware of it.
Tags: Code Analysis, Groovy


April 19th, 2011 at 8:07 pm
thats really nice, is the same intention available for actionscript code?