aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/annotations/Switch.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-02-12 12:15:25 +0100
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-02-12 12:15:25 +0100
commit86fed12ac48f750c16efd1311dfae980371725f9 (patch)
tree8478b0aff92fe48b1c6f6a5b84291286d3a521c0 /src/main/java/io/polyfrost/oneconfig/annotations/Switch.java
parent2231da6af9982840fa9d3bd24c4333bdbbe19cc2 (diff)
downloadOneConfig-86fed12ac48f750c16efd1311dfae980371725f9.tar.gz
OneConfig-86fed12ac48f750c16efd1311dfae980371725f9.tar.bz2
OneConfig-86fed12ac48f750c16efd1311dfae980371725f9.zip
create annotations
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/annotations/Switch.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/annotations/Switch.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/annotations/Switch.java b/src/main/java/io/polyfrost/oneconfig/annotations/Switch.java
new file mode 100644
index 0000000..fffb490
--- /dev/null
+++ b/src/main/java/io/polyfrost/oneconfig/annotations/Switch.java
@@ -0,0 +1,13 @@
+package io.polyfrost.oneconfig.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface Switch {
+ String name();
+ String description() default "";
+}