Package com.helixframework.collections
Class TrackingMap.Operation<K>
java.lang.Object
com.helixframework.collections.TrackingMap.Operation<K>
- Type Parameters:
K- key type
- Enclosing class:
- TrackingMap<K,
V>
Tracked operation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K> TrackingMap.Operation<K>delete(K key) Creates a delete operation.getKey()Gets the key for the operation.getType()Gets the type of the operation.static <K> TrackingMap.Operation<K>read(K key) Creates a read operation.static <K> TrackingMap.Operation<K>write(K key) Creates a write operation.
-
Method Details
-
read
Creates a read operation.- Type Parameters:
K- key type- Parameters:
key- key- Returns:
- a read operation
-
write
Creates a write operation.- Type Parameters:
K- key type- Parameters:
key- key- Returns:
- a write operation
-
delete
Creates a delete operation.- Type Parameters:
K- key type- Parameters:
key- key- Returns:
- a delete operation
-
getKey
Gets the key for the operation.- Returns:
- key
-
getType
Gets the type of the operation.- Returns:
- operation type
-