Record Class PrimitiveMetadata
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.PrimitiveMetadata
- Record Components:
stepName- step name.eventNameCustomizer- event name customizer.
public record PrimitiveMetadata(String stepName, EventNameCustomizer eventNameCustomizer)
extends Record
Reusable metadata shared by primitive specs.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveMetadata(String stepName, EventNameCustomizer eventNameCustomizer) Creates an instance of aPrimitiveMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventNameCustomizerrecord component.eventNameCustomizer(EventNameCustomizer eventNameCustomizer) Returns a copy of this metadata with the provided event name customizer.final inthashCode()Returns a hash code value for this object.stepName()Returns the value of thestepNamerecord component.Returns a copy of this metadata with the provided step name.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrimitiveMetadata
Creates an instance of aPrimitiveMetadatarecord class.- Parameters:
stepName- the value for thestepNamerecord componenteventNameCustomizer- the value for theeventNameCustomizerrecord component
-
-
Method Details
-
stepName
Returns a copy of this metadata with the provided step name.- Parameters:
stepName- logical step name- Returns:
- copied metadata with updated step name
-
eventNameCustomizer
Returns a copy of this metadata with the provided event name customizer.- Parameters:
eventNameCustomizer- customizer for published event names- Returns:
- copied metadata with updated event naming
-
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). -
stepName
Returns the value of thestepNamerecord component.- Returns:
- the value of the
stepNamerecord component
-
eventNameCustomizer
Returns the value of theeventNameCustomizerrecord component.- Returns:
- the value of the
eventNameCustomizerrecord component
-