For example I have the following object:
public class Dog{
private String name;
private int age;
private int legs;
private Color color;
/*getters and setters*/
}
And I want to initialize it and set all properties not by constructor but by using setters:
Dog dog = new Dog();
dog.setName("Rex");;
dog.setAge(4);
...
Can I generate code which set all fields from above in the easy way?