Interface WarpsRepository

All Known Implementing Classes:
MySQLWarpsRepository, SQLiteWarpsRepository, SQLWarpsRepository

public interface WarpsRepository
Repository interface for managing warps in the storage system.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(String warpName)
    Deletes a warp from the storage system.
    Gets a list of all warp names.
    load(String warpName)
    Gets a warp by its name.
    void
    save(WarpData warpData)
    Saves a warp to the storage system.
  • Method Details

    • load

      WarpData load(String warpName)
      Gets a warp by its name.
      Parameters:
      warpName - The name of the warp.
      Returns:
      The warp object, or null if not found.
    • save

      void save(WarpData warpData)
      Saves a warp to the storage system.
      Parameters:
      warpData - The warp to save.
    • delete

      boolean delete(String warpName)
      Deletes a warp from the storage system.
      Parameters:
      warpName - The name of the warp to delete.
    • getAllWarpNames

      List<String> getAllWarpNames()
      Gets a list of all warp names.
      Returns:
      A list of all warp names.