Class LockKey

java.lang.Object
com.plotsquared.core.synchronization.LockKey

public final class LockKey extends Object
Key used to access locks from a LockRepository
  • Method Details

    • of

      public static @NonNull LockKey of(@NonNull String key)
      Get a new named lock key
      Parameters:
      key - Key name
      Returns:
      Lock key instance
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object