Record Class StateMachine.Input
java.lang.Object
java.lang.Record
dev.restate.sdk.core.statemachine.StateMachine.Input
- Enclosing interface:
StateMachine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of theinvocationIdrecord component.@Nullable Stringkey()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(InvocationId invocationId, Slice body, Map<String, String> headers, @Nullable String key) Creates an instance of aInputrecord class.- Parameters:
invocationId- the value for theinvocationIdrecord componentbody- the value for thebodyrecord componentheaders- the value for theheadersrecord componentkey- the value for thekeyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
invocationId
Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-