With java I can write something like that
public <T extends Enum> getValue (Class<T> clazz) {} Is there a way to parametrize not from Enum, but from Annotation? So example I want write something like this:
public <T extends @interface> getValue (Class<T> clazz) {} My goal is to be insure during compilation time that clazz variable is annotation. Any ideas? (except call class.isAnnotation inside a method)