Got a little puzzle for a true Java Generics specialist... ;)
Let\'s say I have the following two interfaces:
interface Processor { void process(Foo
interface Processor> { void process(F fooSubclass); } interface Foo> { Processor getProcessor(); }
I haven't tested that this is precisely right, but this pattern of having the generic type refer to itself is probably about as close as you are going to get with compile-time Java generics.