Java開発–@Documented アノテーションの使い方

参考コード:
package com.startnees24.pckd.documentedannotation ;
import java.lang.annotation.Documented ;
@PcDocumentedtAnnotation(key="apple",value="itunecard")
public class PcDocumentedtAnnotationDemo{

@PcDocumentedtAnnotation(key="apple",value="itunecard")
public String toString(){
return “this is easy @Documented demo" ;
}
};

@Documented
@interface PcDocumentedtAnnotation{
public String key() default “iphone" ;
public String value() default “apple" ;
}

Java

Posted by arkgame