Class Locked<Lock,Item>
java.lang.Object
de.xima.fc.prompt.mgmt.service.Locked<Lock,Item>
- Type Parameters:
Lock- The type of the lockItem- The type of the item being locked
- All Implemented Interfaces:
Serializable
Represents an item that is locked by a specific lock. Contains both the lock and the item.
- Since:
- 8.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()item()The item being locked.lock()The lock associated with the item.static <Lock,Item>
Locked<Lock, Item> locked(Lock lock, Item item) Creates a new locked instance with the given lock and item.static <Lock,Item>
Locked<Lock, Item> of(Lock lock, Item item) Creates a new locked instance with the given lock and item.
-
Method Details
-
equals
-
hashCode
-
item
-
lock
-
of
Creates a new locked instance with the given lock and item.- Parameters:
lock- the lock associated with the itemitem- the item being locked- Returns:
- A new Locked instance
-
locked
Creates a new locked instance with the given lock and item.- Parameters:
lock- the lock associated with the itemitem- the item being locked- Returns:
- A new Locked instance
-