KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > examples > stack > annotation > Bound


1 package spoon.examples.stack.annotation;
2
3 import java.lang.annotation.ElementType JavaDoc;
4 import java.lang.annotation.Target JavaDoc;
5
6 /**
7  * This annotation is used to annotate our stack class to make it bounded.
8  */

9 @Target JavaDoc(ElementType.TYPE)
10 public @interface Bound {
11     int max() default 10;
12 }
13
Popular Tags