Where is the class for CallFlowResource??
A simple way would be for you to create a list and add the values as you want them to be outputted.
It you would look like this:
public List<CallFlowResource> getCallFlow(CallFlowObject obj)
{
List<CallFlowResource> callFlowRes = new ArrayList<>();
for(int i = 0; i<size; i++)
{
callFlowRes.add(obj.GetterMethodForCFR(i));
}
return callFlowRes;
}
3
solved Passing an Object to a method and returning a list of Objects any example [closed]