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 thecreatedByEntityRefrecord component.Returns the value of theentityRefrecord component.final booleanIndicates whether some other object is "equal to" this one.longeventId()Returns the value of theeventIdrecord component.longReturns the value of theeventTimerecord component.intReturns the value of theeventTimeSequencerecord component.Returns the value of theeventTypeNamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therelatedEntityRefrecord component.Returns the value of therelatedEventTypeNamerecord component.final StringtoString()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 aEventrecord class.- Parameters:
eventId- the value for theeventIdrecord componenteventTime- the value for theeventTimerecord componenteventTimeSequence- the value for theeventTimeSequencerecord componententityRef- the value for theentityRefrecord componentid- the value for theidrecord componenteventTypeName- the value for theeventTypeNamerecord componentrelatedEntityRef- the value for therelatedEntityRefrecord componentrelatedEventTypeName- the value for therelatedEventTypeNamerecord componentcreatedByEntityRef- the value for thecreatedByEntityRefrecord 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 theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
eventTime
Returns the value of theeventTimerecord component.- Returns:
- the value of the
eventTimerecord component
-
eventTimeSequence
Returns the value of theeventTimeSequencerecord component.- Returns:
- the value of the
eventTimeSequencerecord component
-
entityRef
Returns the value of theentityRefrecord component.- Returns:
- the value of the
entityRefrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
eventTypeName
Returns the value of theeventTypeNamerecord component.- Returns:
- the value of the
eventTypeNamerecord component
-
createdByEntityRef
Returns the value of thecreatedByEntityRefrecord component.- Returns:
- the value of the
createdByEntityRefrecord component
-