What is the meaning of the question mark in angle brackets? Extend Java lang.Comparable>

In the App Engine, according to the Javadoc, the gettyperank method has this signature:

public static int getTypeRank(java.lang.Class<? extends java.lang.Comparable> datastoreType)

In the method signature, there is a question mark in angle brackets:

< ;? Extend Java lang.Comparable>

What's the meaning of this?

Solution

? Basically represents wildcards& LT ;? Extend Java Lang. comparable > means that "any type that extends Java. Lang. comparable (or comparable itself) can be used here"

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>