I have below class created.
public class SomeRequest<B extends Billing,E extends Employee, L extends Level>{
B billing;
E employee;
Class<L> level;
public void process(HashMap<String, Object> input){
this.billing = (B)data.get("billing");
this.employee= (E)data.get("employee");
this.level = (Class<L>)data.get("level");
//Some logic
}
}
In above class Employee
, Billing
and Level
are Java POJOs.
Now how can i instantiate above SomeRequest
class?
Thanks!