diff options
author | Jesse Wilson <jessewilson@google.com> | 2009-12-10 17:45:56 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2009-12-10 18:00:27 -0800 |
commit | 66e84b9ff30de7c75b510cb9117205368cf5bd25 (patch) | |
tree | 9b49377f14e9eea01d15986f3b091a2a8bb80ca1 /ri/src/main/java/javax/annotation/meta/Exclusive.java | |
parent | b0ccf1cf90b52ec3866bf436a66b208d5aff21d2 (diff) | |
download | platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.tar.gz platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.tar.bz2 platform_external_jsr305-66e84b9ff30de7c75b510cb9117205368cf5bd25.zip |
Initial checkin. JSR 305 r49
Diffstat (limited to 'ri/src/main/java/javax/annotation/meta/Exclusive.java')
-rw-r--r-- | ri/src/main/java/javax/annotation/meta/Exclusive.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ri/src/main/java/javax/annotation/meta/Exclusive.java b/ri/src/main/java/javax/annotation/meta/Exclusive.java new file mode 100644 index 0000000..d018c33 --- /dev/null +++ b/ri/src/main/java/javax/annotation/meta/Exclusive.java @@ -0,0 +1,26 @@ +package javax.annotation.meta; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** + * This annotation can be applied to the value() element of an annotation that + * is annotated as a TypeQualifier. + * + * For example, the following defines a type qualifier such that if you know a + * value is {@literal @Foo(1)}, then the value cannot be {@literal @Foo(2)} or {{@literal @Foo(3)}. + * + * <code> + * @TypeQualifier @interface Foo { + * @Exclusive int value(); + * } + * </code> + * + */ + +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface Exclusive { + +} |