Package fr.sandro642.github.misc
Class EnumLoader
java.lang.Object
fr.sandro642.github.misc.EnumLoader
ConvertEnum is a utility class for converting enums that implement the RouteImport interface into a map of routes.
This class provides a method to convert an enum class into a map where the keys are the enum constants and the values are their corresponding routes.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
RouteImport is an interface that should be implemented by enums that provide a route. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnumLoader
public EnumLoader()
-
-
Method Details
-
convertRouteImport
Converts an enum class that implements RouteImport into a map. The keys of the map are the enum constants, and the values are their corresponding routes.- Parameters:
enumClass
- the class of the enum to convert- Returns:
- a map containing the enum constants as keys and their routes as values
-