I have this method:
public <T> void onMultipleSelectionTextFinished(
@NonNull ArrayList<FMultipleSelectionText.HolderItem<T>> holderItems,
int payload) {
// check here
}
How can I check inside of it that holderItem
is of type ArrayList<FMultipleSelectionText.HolderItem<EFunction>>
and if it is then cast it to that and handle if in a special way ?
EDIT:
I tried using instanceof
but it says this:
Also, I went by the rout of castig it to Object
first and then castig it again to what I needed, but it's not an elegant solution :(