Package io.mateu.dtos
Record Class JourneyDto
java.lang.Object
java.lang.Record
io.mateu.dtos.JourneyDto
- Record Components:
type- The journey dataTypestatus- The journey statusstatusMessage- The journey status messagecurrentStepId- The current step targetIdcurrentStepDefinitionId- the current step definition targetId. Used for bpmn engines
public record JourneyDto(String type, JourneyStatusDto status, String statusMessage, String currentStepId, String currentStepDefinitionId)
extends Record
Info about the journey
-
Constructor Summary
ConstructorsConstructorDescriptionJourneyDto(String type, JourneyStatusDto status, String statusMessage, String currentStepId, String currentStepDefinitionId) Creates an instance of aJourneyDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentStepDefinitionIdrecord component.Returns the value of thecurrentStepIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.Returns the value of thestatusMessagerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
JourneyDto
public JourneyDto(String type, JourneyStatusDto status, String statusMessage, String currentStepId, String currentStepDefinitionId) Creates an instance of aJourneyDtorecord class.- Parameters:
type- the value for thetyperecord componentstatus- the value for thestatusrecord componentstatusMessage- the value for thestatusMessagerecord componentcurrentStepId- the value for thecurrentStepIdrecord componentcurrentStepDefinitionId- the value for thecurrentStepDefinitionIdrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
statusMessage
Returns the value of thestatusMessagerecord component.- Returns:
- the value of the
statusMessagerecord component
-
currentStepId
Returns the value of thecurrentStepIdrecord component.- Returns:
- the value of the
currentStepIdrecord component
-
currentStepDefinitionId
Returns the value of thecurrentStepDefinitionIdrecord component.- Returns:
- the value of the
currentStepDefinitionIdrecord component
-