From 86fed12ac48f750c16efd1311dfae980371725f9 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sat, 12 Feb 2022 12:15:25 +0100 Subject: create annotations --- .../java/io/polyfrost/oneconfig/annotations/Switch.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/java/io/polyfrost/oneconfig/annotations/Switch.java (limited to 'src/main/java/io/polyfrost/oneconfig/annotations/Switch.java') 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 ""; +} -- cgit