I would like to make a class extend another class among several like this:
class Special extends < Class1<type1> , Class2<Type2>> {
// ToDo
}
I tried something like:
class Special<T1, T2, T3, T4> extends < T1<T2> , T3<T4>> {
// ToDo
}
Of course that syntax does not compile. How can I do that?
EDIT 1
Let's be clear here: I do NOT want multiple inheritance. I would like my class to extend EITHER one super class, EITHER another one. For that I am asking if there is a possibility doing so using generics.
The same way one can use generics for this special map of array:
class MapArray<T_KEY, T_VALUE> extends LinkedHashMap<T_KEY, ArrayList<T_VALUE>> {
}
This code works an allows the user to put any type for T_KEY and T_VALUE. I would like to know whether is would be possible to use generics with classes.
To put it more simply I would like to do that:
class Special extends < Either_this_class, Either_this_one > {
}