Class PersistUtils
java.lang.Object
io.github.vitalforge.persistlib.util.PersistUtils
Utility class for operations on persisted data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object[]
convertTypes
(Object[] objects, Class<?>[] classes) Converts objects to the specified types.static @NotNull Object[]
extractArgs
(Executable executable, Map<String, Object> data) Extracts arguments from a map using a given executable.
-
Method Details
-
extractArgs
@NotNull public static @NotNull Object[] extractArgs(Executable executable, Map<String, Object> data) Extracts arguments from a map using a given executable.- Parameters:
executable
- The executable from which to extract arguments.data
- The map from which to extract the arguments.- Returns:
- An array of objects extracted from the map.
-
convertTypes
Converts objects to the specified types.- Parameters:
objects
- The objects to convert.classes
- The classes to which to convert the objects.- Returns:
- An array of objects converted to the specified types.
-