Record Class TransactionOp.MapPut
java.lang.Object
java.lang.Record
com.loomcache.server.transaction.TransactionOp.MapPut
- Record Components:
structureName- the name of the map (must not be null)key- the key to put (must not be null)value- the value to associate (must not be null)
- All Implemented Interfaces:
TransactionOp
- Enclosing interface:
TransactionOp
public static record TransactionOp.MapPut(String structureName, String key, String value)
extends Record
implements TransactionOp
Map put operation: associates key with value in a distributed map.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TransactionOp
TransactionOp.MapDelete, TransactionOp.MapPut, TransactionOp.MapPutIfAbsent, TransactionOp.MultiMapPut, TransactionOp.MultiMapRemove, TransactionOp.QueueOffer, TransactionOp.QueuePoll, TransactionOp.SetAdd, TransactionOp.SetRemove -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of thestructureNamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MapPut
Compact constructor validating all fields.- Throws:
NullPointerException- if any field is null
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
structureName
Returns the value of thestructureNamerecord component.- Specified by:
structureNamein interfaceTransactionOp- Returns:
- the value of the
structureNamerecord component
-
key
-
value
-