From f07511b3de547c82ef8e6c171b2d75e418c04693 Mon Sep 17 00:00:00 2001 From: Kevin Barnes Date: Mon, 13 Jan 2025 08:57:09 -0500 Subject: [PATCH] Add config type class --- .../dev/majek/hexnicks/config/ConfigType.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/dev/majek/hexnicks/config/ConfigType.java diff --git a/src/main/java/dev/majek/hexnicks/config/ConfigType.java b/src/main/java/dev/majek/hexnicks/config/ConfigType.java new file mode 100644 index 0000000..164fd13 --- /dev/null +++ b/src/main/java/dev/majek/hexnicks/config/ConfigType.java @@ -0,0 +1,22 @@ +package dev.majek.hexnicks.config; + +import java.lang.reflect.Type; +import java.util.List; + +public enum ConfigType { + BOOLEAN(Boolean.class), + STRING(String.class), + INT(Integer.class), + COLOR(String.class), + LIST(List.class); + + private final Type type; + + ConfigType(Type type) { + this.type = type; + } + + public Type type() { + return this.type; + } +}