I am wondering if there is a short cut for my current problem.
I have a List abcList.
It contains 3 type of objects/Entity A B C (they did not inherit a common interface or parent, with exception to Object>.
They are hibernate Entity.
I have 3 overloaded method.
process(A a)
process(B b)
process(B C)
I was hoping to loop the
List abcList and just calling process();
for(Object o: abcList) process(o);
is there an easy solution for my current problem? I am implementing a class that contain 3 different type of object List.