Record Class AtomicController.AtomicLongCasRequest
java.lang.Object
java.lang.Record
com.loomcache.springboot.controller.AtomicController.AtomicLongCasRequest
- Enclosing class:
AtomicController
-
Constructor Summary
ConstructorsConstructorDescriptionAtomicLongCasRequest(long expect, long update) Creates an instance of aAtomicLongCasRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longexpect()Returns the value of theexpectrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longupdate()Returns the value of theupdaterecord component.
-
Constructor Details
-
AtomicLongCasRequest
public AtomicLongCasRequest(long expect, long update) Creates an instance of aAtomicLongCasRequestrecord class.- Parameters:
expect- the value for theexpectrecord componentupdate- the value for theupdaterecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
expect
public long expect()Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-
update
public long update()Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-