抽象クラスまたはインターフェースを作成していて、抽象メソッドの詳細を提供したい場合、そのメソッドの抽象クラス/インターフェースからコメントを自動インポートする方法はありますか?
例: Letter
implementsShippable
で、コメントを自動インポートしたい。については知ってい${see_to_overridden}
ますが、抽象メソッドのコメントを直接注入することをお勧めします
public interface Shippable{
/*
* returns boolean based on your class's criteria for if it needs to be insured
* if your parcel type is not insurable just leave as false
*/
boolean isInsured();
String shippingMethod();
}
public class Letter implements Insurable{
/*
* returns boolean based on your class's criteria for if it needs to be insured
* if your parcel type is not insurable just leave as false
*/
boolean isInsured(){
return false;
}
}