Record Class ServerControlStore.ProtocolMutation
java.lang.Object
java.lang.Record
zeroecho.pki.server.ServerControlStore.ProtocolMutation
- Record Components:
record- replacement protocol recordexpectedCommitment- empty for create-only, otherwise the required current commitment
- Enclosing class:
ServerControlStore
public static record ServerControlStore.ProtocolMutation(ServerControlStore.ProtocolRecord record, Optional<String> expectedCommitment)
extends Record
One compare-and-set mutation participating in an atomic protocol-state change.
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolMutation(ServerControlStore.ProtocolRecord record, Optional<String> expectedCommitment) Validates the immutable mutation request. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedCommitmentrecord component.final inthashCode()Returns a hash code value for this object.record()Returns the value of therecordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtocolMutation
public ProtocolMutation(ServerControlStore.ProtocolRecord record, Optional<String> expectedCommitment) Validates the immutable mutation request.
-
-
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). -
record
-
expectedCommitment
Returns the value of theexpectedCommitmentrecord component.- Returns:
- the value of the
expectedCommitmentrecord component
-