-1

Reactorコードでは、次のようなものを見ることができました

/**
 * Create a {@link Tuple1} with the given object.
 *
 * @param t1   The first value in the tuple.
 * @param <T1> The type of the first value.
 * @return The new {@link Tuple1}.
 */
public static <T1> Tuple1<T1> of(T1 t1) {
    return new Tuple1<T1>(t1);
}

この「の」キーワードは何ですか?

4

1 に答える 1

4

あなたが見ているのは新しいofキーワードではありません。そのようには見えないかもしれませんが、実際にはメソッドの名前です。

于 2013-12-27T01:48:27.787 に答える