Java Type Hints on Generic Method Calling

前端 未结 1 1653
后悔当初
后悔当初 2021-01-28 17:06

I\'m wondering what is the proper way to call a static method with a signature like this:

public static  Map> aggregate(Lis         


        
1条回答
  •  清酒与你
    2021-01-28 17:38

    As shown here, the way to call the method would be:

    ClassName.aggregate(lData, "id", "ref");
    

    where ClassName is the name of the class that the method is contained in.

    0 讨论(0)
提交回复
热议问题