我在图片中使用红色箭头和绿色矩形标记的'()'在Java API文档中代表什么?

What does the '()', which I use red arows and green rectangle to mark in the picture, represent in the Java API doc?

JAVA API 文档中有很多像“(Class1,Class2)”这样的词。这些词代表什么?

我在图片中用红色箭头和绿色矩形标记的'()'在Java API文档中代表什么?

有方法采用的参数。这里 cancel 接受一个 String 和一个 Throwable 作为参数

通过这样的方法,您只需 method(String a, String b)

static void method(String a, String b) {

}

cancel 是一个方法,所以它被称为 cancel(),参数在括号内。

cancel(String, Throwable) 表示它是一个取消方法,第一个参数是 String,第二个参数是 Throwable。

这只是一个方法签名:

public abstract void cancel(@Nullable String message, @Nullable Throwable cause)