In Java, can I specify any amount of generic type parameters?

前端 未结 3 1363
野的像风
野的像风 2021-01-17 16:14

I am looking to create a particular type of interface in Java (although this is just as applicable to regular classes). This interface would need to contain some me

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 16:40

    Is anything like this available? I have read about variadic templates in C++, but cannot find anything similar in Java. Is any such thing available?

    No, this feature is not available in Java.

提交回复
热议问题