コメントやドキュメントなどでクラス + メソッド参照が次のように書かれているのを見始めました。
MyClass#myMethod
つまり#
、クラスとメソッドの間に a があります。これはある種のコーディング標準/慣習ですか?
コメントやドキュメントなどでクラス + メソッド参照が次のように書かれているのを見始めました。
MyClass#myMethod
つまり#
、クラスとメソッドの間に a があります。これはある種のコーディング標準/慣習ですか?
公式のガイドラインはHow to Write Doc Comments for the Javadoc Tool にあります。どこで:</p>
@see #field
@see #Constructor(Type, Type...)
@see #Constructor(Type id, Type id...)
@see #method(Type, Type,...)
@see #method(Type id, Type, id...)
@see Class
@see Class#field
@see Class#Constructor(Type, Type...)
@see Class#Constructor(Type id, Type id)
@see Class#method(Type, Type,...)
@see Class#method(Type id, Type id,...)
@see package.Class
@see package.Class#field
@see package.Class#Constructor(Type, Type...)
@see package.Class#Constructor(Type id, Type id)
@see package.Class#method(Type, Type,...)
@see package.Class#method(Type id, Type, id)
@see package
@see と @link の違いを確認するには、別の質問をご覧ください。