mercredi 17 juin 2020

Assign value to setter method using reflection

How do i create object at runtime and set values all the setter values in the object ? I am generating below classes at runtime using jsonschema2pojo.Classes field can change ,

class Foo
(

int a ;
int b;

List <Abc> list;
//getters and setter ommited
}

class Abc
{

int c ;
int d;

}




Aucun commentaire:

Enregistrer un commentaire