Interface Storage

All Known Subinterfaces:
FileStorage
All Known Implementing Classes:
YamlStorage, YamlStorageWithLists

public interface Storage
  • Method Summary

    Modifier and Type
    Method
    Description
    getKey(String root)
    Returns a DataKey starting from the given root.
    boolean
    Loads data from a file or other location.
    void
    Saves the in-memory aspects of the storage to disk.
  • Method Details

    • getKey

      DataKey getKey(String root)
      Returns a DataKey starting from the given root.
      Parameters:
      root - The root to start at
      Returns:
      the created key
    • load

      boolean load()
      Loads data from a file or other location.
      Returns:
      Whether the load was successful
    • save

      void save()
      Saves the in-memory aspects of the storage to disk.