An expression that is calling an overloaded method or property does not find an exact match to the types of arguments that are passed.
正在调用重载方法或属性的表达式找不到与传递的参数类型完全匹配的参数。
Now that you are convinced that the simple overridden add() method works, the next step is to implement the overloaded add() method that takes an index as well as an element, as shown in Listing 15
现在,您已经确信这个简单的重写过的 add() 方法可以正常工作,下一步是实现重载的 add() 方法,可以获取索引以及元素,如清单 15 所示
These methods are almost always overloaded with an int/TimeUnit pair, indicating how long the method should wait before bailing out and returning control to the program.
这些方法几乎总是包含一个 int/TimeUnit 对,指示这些方法应该等待多长时间才释放控制权并将其返回给程序。
应用推荐