如果我正在创建一个抽象类或接口并希望提供有关抽象方法的一些详细信息,有没有办法从该方法的抽象类/接口自动导入注释?
例如:Letter
implements Shippable
,我希望评论自动导入。我知道${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;
}
}