java - do not understand Class<? extends VersionedProtocol> protocol; -


when reading java program, meet following piece line of code

class<? extends versionedprotocol> protocol; 

what <? extends versionedprotocol> stand for? mechanism define class?

the class class has generic type parameter represents itself. here class<? extends versionedprotocol> means class object representing versionedprotocol class or subclass of versionedprotocol.

this known upper-bounded wildcard in java generics.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -