Package su.onno.process
Record Class ProcessMigrationToken<S extends Enum<S> & ProcessStepKey>
java.lang.Object
java.lang.Record
su.onno.process.ProcessMigrationToken<S>
- Record Components:
tokenId- durable token identity preserved by the migrationstep- source definition stepparentTokenId- parent fork token, when this is a parallel branch tokenbranchKey- stable parallel branch key, when present
public record ProcessMigrationToken<S extends Enum<S> & ProcessStepKey>(UUID tokenId, S extends Enum<S> & ProcessStepKey step, UUID parentTokenId, String branchKey)
extends Record
Typed source token presented to a process-definition migration.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessMigrationToken(UUID tokenId, S step, UUID parentTokenId, String branchKey) Creates an instance of aProcessMigrationTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparentTokenIdrecord component.step()Returns the value of thesteprecord component.tokenId()Returns the value of thetokenIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessMigrationToken
Creates an instance of aProcessMigrationTokenrecord class.- Parameters:
tokenId- the value for thetokenIdrecord componentstep- the value for thesteprecord componentparentTokenId- the value for theparentTokenIdrecord componentbranchKey- the value for thebranchKeyrecord 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). -
tokenId
Returns the value of thetokenIdrecord component.- Returns:
- the value of the
tokenIdrecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
parentTokenId
Returns the value of theparentTokenIdrecord component.- Returns:
- the value of the
parentTokenIdrecord component
-
branchKey
Returns the value of thebranchKeyrecord component.- Returns:
- the value of the
branchKeyrecord component
-