Package de.xima.fc.user.presence
Class ResourceKey
- java.lang.Object
-
- de.xima.fc.user.presence.ResourceKey
-
- All Implemented Interfaces:
Serializable
public final class ResourceKey extends Object implements Serializable
A key for a resource that can be edited concurrently by multiple users.- Since:
- 8.6.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceKey.ResourceTypeThe type of resource that can be edited concurrently.
-
Constructor Summary
Constructors Constructor Description ResourceKey(ResourceKey.ResourceType resourceType, long resourceId)Creates a newResourceKeyinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetResourceId()The ID of the resource that can be edited concurrently.ResourceKey.ResourceTypegetResourceType()The type of resource that can be edited concurrently.inthashCode()static ResourceKeyof(@NotNull ResourceKey.ResourceType resourceType, @javax.validation.constraints.NotNull long resourceId)Creates a new resource key.StringtoString()
-
-
-
Constructor Detail
-
ResourceKey
public ResourceKey(ResourceKey.ResourceType resourceType, long resourceId)
Creates a newResourceKeyinstance.- 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
-
-