Interface Lockable

    • Method Detail

      • isLocked

        boolean isLocked()
        Checks if the container has a valid (non empty) key.
        Returns:
        true if the key is valid.
      • getLock

        @NotNull
        String getLock()
        Gets the key needed to access the container.
        Returns:
        the key needed.
      • setLock

        void setLock​(@Nullable
                     String key)
        Sets the key required to access this container. Set to null (or empty string) to remove key.
        Parameters:
        key - the key required to access the container.