I see no-one has replied to this (wonder why???), so I'll have a go.
Is the following the kind of thing you are looking for?
interface I<T extends Event> {
T dosomething(T t);
}
class Event2 extends Event {
public Event2(Object arg0, int arg1, Object arg2) {
super(arg0, arg1, arg2);
}
}
class C<T extends Event> extends PriorityQueue implements I<T> {
@Override
public T dosomething(Event t) {
// TODO Auto-generated method stub
return null;
}
}
void test() {
I<Event2> c = new C<Event2>();
c.dosomething(new Event2(null, 0, null));
}
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073