java.lang.Object
com.github.startsmercury.simply.no.shading.util.storage.PathStorage<T>
Type Parameters:
T - the supported type for storing
All Implemented Interfaces:
Storage<T>
Direct Known Subclasses:
JsonPathStorage

@Deprecated(since="7.0.0", forRemoval=true) public abstract class PathStorage<T> extends Object implements Storage<T>
Deprecated, for removal: This API element is subject to removal in a future version.
No replacement
A PathStorage is an abstract implementation of Storage that will act as a base for states accessed with Java NIO. This class overrides the equals(Object), hashCode(), and toString(), where getPath() is used instead of a direct field access; null returns from the aforementioned #getPath() is properly taken care of.
Since:
6.0.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new PathStorage with the assigned path to where states are read and written into.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the assigned path to where states are read and written into.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.github.startsmercury.simply.no.shading.util.storage.Storage

    load, loadAsync, save, saveAsync
  • Constructor Details

    • PathStorage

      protected PathStorage(Path path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new PathStorage with the assigned path to where states are read and written into.
      Parameters:
      path - the assigned path to where states are read and written into
      Implementation Note:
      It is the responsibility of implementing classes, when overriding, in handling null as a parameter.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • getPath

      public Path getPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the assigned path to where states are read and written into.
      Returns:
      the assigned path to where states are read and written into
      Implementation Note:
      It is the responsibility of implementing classes, when overriding, in handling nulls .
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object