Class ResourceKey

    • Constructor Detail

      • ResourceKey

        public ResourceKey​(ResourceKey.ResourceType resourceType,
                           long resourceId)
        Creates a new ResourceKey instance.
        Parameters:
        resourceType - The type of resource that can be edited concurrently.
        resourceId - The ID of the resource that can be edited concurrently.
        Since:
        8.6.0, 8.6.0
    • Method Detail

      • of

        public static ResourceKey of​(@NotNull
                                     @NotNull ResourceKey.ResourceType resourceType,
                                     @NotNull
                                     @javax.validation.constraints.NotNull long resourceId)
        Creates a new resource key.
        Parameters:
        resourceType - The type of resource.
        resourceId - The ID of the resource.
        Returns:
        the resource key
        Since:
        8.6.0
      • getResourceType

        public ResourceKey.ResourceType getResourceType()
        The type of resource that can be edited concurrently.
        Since:
        8.6.0
      • getResourceId

        public long getResourceId()
        The ID of the resource that can be edited concurrently.
        Since:
        8.6.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object