Rank: Newbie Groups: Member
Joined: 8/5/2008 Posts: 1 Points: 3 Location: Hungary
|
Hi,
A command creating a parameterized constructor initializing all existing fields would be great. For example for class
public class Complex { double re; double im; }
the following constructor would be created:
public class Complex { double re; double im;
public Complex(double re, double im) { this.re = re; this.im = im; } }
This could save a lot of time if you have entity classes with a lot of fields. Maybe there could be an alternatives creating constructors initializing fields/properties/both.
|
Rank: Administration Groups: Administration
Joined: 3/16/2008 Posts: 21 Points: 69 Location: Spain
|
Please, see the class command and you can figure it out how to modify it to acomplish what you say.
Thanks,
Alvaro
|