Java-syntax for explicitly specifying generic arguments in method calls

前端 未结 3 1493
我寻月下人不归
我寻月下人不归 2020-12-05 09:01

What is the syntax for explicitly giving the type parameters for a generic Java method?

3条回答
  •  天命终不由人
    2020-12-05 09:55

    According to the Java specification that would be for example:

    Collections.unmodifiableSet()
    

    (Sorry for asking and answering my own question - I was just looking this up for the third time. :-)

提交回复
热议问题