If I have class CalendarModel to get class I use CalendarModel.class
.
But how when I have list of model? Something like List < CalendarModel>.class
This is context in my app in which I need that: Android easy cache requires that thing https://github.com/vincentbrison/android-easy-cache
DualCache<AbstractVehicule> cache = new DualCacheBuilder<AbstractVehicule>(CACHE_NAME, TEST_APP_VERSION, AbstractVehicule.class)
.useDefaultSerializerInRam(RAM_MAX_SIZE)
.noDisk();
How to write this if I want to cache list of AbstractVehicule?
EDIT:
Maybe this is solution: (Class< List< AbstractVehicule >>)(Class<?>)List.class