summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/annotations/Version.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/redstoner/annotations/Version.java')
-rw-r--r--src/main/java/com/redstoner/annotations/Version.java43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/main/java/com/redstoner/annotations/Version.java b/src/main/java/com/redstoner/annotations/Version.java
index 52d5145..2137c3f 100644
--- a/src/main/java/com/redstoner/annotations/Version.java
+++ b/src/main/java/com/redstoner/annotations/Version.java
@@ -1,32 +1,33 @@
package com.redstoner.annotations;
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
+import java.lang.annotation.*;
-/** The Version annotation, to be applied to all Classes that are part of the project.
- *
- * @author Pepich */
-@Target(ElementType.TYPE)
+/**
+ * The Version annotation, to be applied to all Classes that are part of the project.
+ *
+ * @author Pepich
+ */
+@Target (ElementType.TYPE)
@Documented
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Version
-{
- /** The major indicator of the version. Will be used for compatibility detection.
- *
- * @return the major version as an int */
+@Retention (RetentionPolicy.RUNTIME)
+public @interface Version {
+ /**
+ * The major indicator of the version. Will be used for compatibility detection.
+ *
+ * @return the major version as an int
+ */
int major();
-
+
int minor();
-
+
int revision();
-
- /** The compatibility part of the version number. Will be used for compatibility detection.</br>
+
+ /**
+ * The compatibility part of the version number. Will be used for compatibility detection.</br>
* Set to -1 if it is supposed to be always compatible.</br>
* Defaults to 1.
- *
- * @return the smallest compatible version as an int. */
+ *
+ * @return the smallest compatible version as an int.
+ */
int compatible() default 1;
}