Class PersistUtils

java.lang.Object
io.github.vitalforge.persistlib.util.PersistUtils

public class PersistUtils extends Object
Utility class for operations on persisted data.
  • 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

      public static Object[] convertTypes(Object[] objects, Class<?>[] classes)
      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.