I want to provide something like this in my api:
class Foobar extends AbstractThing<Double>
class EventThing<Foobar> {
public Foobar getSource();
public Double getValue();
}
So I write this:
class EventThing<T extends AbstractThing<U>> {
public T getSource();
public U getValue();
}
But java can not resolve the U
.
With EventThing<T extends AbstractThing<U>,U>
instead it works, but the second U
is actually redundant 'cause the AbtractThing define the Type already. So I love to get rid of it.