samedi 19 mars 2016

Write a method that returns Arraylist of unindentified objects

I need a generic method which will return an arrayList which contains of different types of domain objects. Is there a way I could do this? My current solution is to set method to return Object and then to cast this Object into arrayList of which I need.

Thanks

Aucun commentaire:

Enregistrer un commentaire