Quantcast
Channel: BlogoSfera » parameter?
Viewing all articles
Browse latest Browse all 12

Can you reference ‘this’ class as a generic parameter? [duplicate]

$
0
0

This question already has an answer here: Is there a way to refer to the current type with a type variable? 5 answers I have had a bit of a problem a few times where I want to do something like this: interface MyInterface { public Validator<this.class> getValidator(); } class MyInstance implements MyInterface { public […]

The post Can you reference ‘this’ class as a generic parameter? [duplicate] appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 12

Trending Articles