Record Class Event
java.lang.Object
java.lang.Record
com.echothree.model.control.core.server.kafka.Event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedByEntityRef
record component.Returns the value of theentityRef
record component.final boolean
Indicates whether some other object is "equal to" this one.long
eventId()
Returns the value of theeventId
record component.long
Returns the value of theeventTime
record component.int
Returns the value of theeventTimeSequence
record component.Returns the value of theeventTypeName
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of therelatedEntityRef
record component.Returns the value of therelatedEventTypeName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Event
public Event(long eventId, long eventTime, int eventTimeSequence, String entityRef, String id, String eventTypeName, String relatedEntityRef, String relatedEventTypeName, String createdByEntityRef) Creates an instance of aEvent
record class.- Parameters:
eventId
- the value for theeventId
record componenteventTime
- the value for theeventTime
record componenteventTimeSequence
- the value for theeventTimeSequence
record componententityRef
- the value for theentityRef
record componentid
- the value for theid
record componenteventTypeName
- the value for theeventTypeName
record componentrelatedEntityRef
- the value for therelatedEntityRef
record componentrelatedEventTypeName
- the value for therelatedEventTypeName
record componentcreatedByEntityRef
- the value for thecreatedByEntityRef
record 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
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
eventId
Returns the value of theeventId
record component.- Returns:
- the value of the
eventId
record component
-
eventTime
Returns the value of theeventTime
record component.- Returns:
- the value of the
eventTime
record component
-
eventTimeSequence
Returns the value of theeventTimeSequence
record component.- Returns:
- the value of the
eventTimeSequence
record component
-
entityRef
Returns the value of theentityRef
record component.- Returns:
- the value of the
entityRef
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
eventTypeName
Returns the value of theeventTypeName
record component.- Returns:
- the value of the
eventTypeName
record component
-
createdByEntityRef
Returns the value of thecreatedByEntityRef
record component.- Returns:
- the value of the
createdByEntityRef
record component
-