如果你不喜欢关键字参数,你可以定义一种新的不包含关键字参数的方法类型。
If you don't like keyword arguments, you can define a new method type that doesn't have them.
没有采用附加参数的方法创建一个新的适当类型的实例,然后调用采用附加参数的方法。
The method that does not take the extra parameter creates a new instance of the appropriate type and then calls the method that does take the extra parameter.
尽管是相同的字节码,但是类型参数信息用一个新的签名(signature)属性记录在类模式中。
Despite this identical bytecode, the type parameter information is recorded in the class format using a new signature attribute.
应用推荐