11package fr .sandro642 .github ;
22
33import fr .sandro642 .github .enums .LangType ;
4- import fr .sandro642 .github .enums .ResourceType ;
54import fr .sandro642 .github .enums .lang .CategoriesType ;
65import fr .sandro642 .github .hook .HookManager ;
76import fr .sandro642 .github .hook .LangSupport ;
87import fr .sandro642 .github .hook .MCSupport ;
9- import fr .sandro642 .github .jobs .JobGetInfos ;
108import fr .sandro642 .github .misc .*;
9+ import fr .sandro642 .github .jobs .JobGetInfos ;
10+ import fr .sandro642 .github .enums .ResourceType ;
1111import fr .sandro642 .github .update .RetrieveLastVersion ;
1212
1313import java .util .HashMap ;
1616/**
1717 * ConnectLib is the main class of the ConnectorAPI library for Standard API.
1818 * It provides methods to initialize the library with resource types, routes, and schemas,
19- *
2019 * @author Sandro642
2120 * @version 1.0
2221 * @see ConnectLib#JobGetInfos()
@@ -34,16 +33,15 @@ public class ConnectLib {
3433 private static Logger logger = new Logger ();
3534 private static StoreAndRetrieve storeAndRetrieve = new StoreAndRetrieve ();
3635 private static YamlUtils yamlUtils = new YamlUtils ();
37- private static final Map <String , String > routes = new HashMap <>();
36+ private static final Map <String ,String > routes = new HashMap <>();
3837 private static Logs logs = new Logs ();
3938 private static LangManager langManager ;
4039 private static RetrieveLastVersion rlv ;
4140
4241 /**
4342 * Init the ConnectLib with the specified resource type and routes.
44- *
4543 * @param resourceType the type of resource to initialize
46- * @param routes the routes to be used in the ConnectLib
44+ * @param routes the routes to be used in the ConnectLib
4745 */
4846 public void Init (ResourceType resourceType , LangType langType , Class <? extends Enum <?>>... routes ) {
4947 try {
@@ -61,6 +59,8 @@ public void Init(ResourceType resourceType, LangType langType, Class<? extends E
6159
6260 langManager = new LangManager ();
6361
62+
63+
6464 Map <Enum <?>, String > routesEnums = new HashMap <>();
6565 for (Class <? extends Enum <?>> route : routes ) {
6666 if (route == null ) {
@@ -89,7 +89,6 @@ public void Init(ResourceType resourceType, LangType langType, Class<? extends E
8989
9090 /**
9191 * Return the route associated with the given route name.
92- *
9392 * @param routeName the name of the route to retrieve
9493 * @return the route as a String
9594 */
@@ -104,7 +103,6 @@ public String getRoute(String routeName) {
104103
105104 /**
106105 * Return an instance of JobGetInfos.
107- *
108106 * @return JobGetInfos instance
109107 */
110108 public JobGetInfos JobGetInfos () {
@@ -113,7 +111,6 @@ public JobGetInfos JobGetInfos() {
113111
114112 /**
115113 * Return the instance of Logger.
116- *
117114 * @return Logger instance
118115 */
119116 public Logger Logger () {
@@ -125,7 +122,6 @@ public Logger Logger() {
125122
126123 /**
127124 * Return the instance of StoreAndRetrieve.
128- *
129125 * @return StoreAndRetrieve instance
130126 */
131127 public StoreAndRetrieve StoreAndRetrieve () {
@@ -137,7 +133,6 @@ public StoreAndRetrieve StoreAndRetrieve() {
137133
138134 /**
139135 * Return the instance of YamlUtils.
140- *
141136 * @return YamlUtils instance
142137 */
143138 public YamlUtils YamlUtils () {
@@ -149,7 +144,6 @@ public YamlUtils YamlUtils() {
149144
150145 /**
151146 * Return the instance of Logs.
152- *
153147 * @return Logs instance
154148 */
155149 public MCSupport MCSupport () {
@@ -158,7 +152,6 @@ public MCSupport MCSupport() {
158152
159153 /**
160154 * Return the instance of HookManager.
161- *
162155 * @return HookManager instance
163156 */
164157 public HookManager HookManager () {
@@ -167,7 +160,6 @@ public HookManager HookManager() {
167160
168161 /**
169162 * Return the instance of LangSupport.
170- *
171163 * @return LangSupport instance
172164 */
173165 public LangSupport LangSupport () {
@@ -177,7 +169,6 @@ public LangSupport LangSupport() {
177169
178170 /**
179171 * Return the instance of LangManager.
180- *
181172 * @return LangManager instance
182173 */
183174 public LangManager LangManager () {
0 commit comments