E - The type of the implementing event class, following the self-referential generic pattern.public interface Event<E extends Event<E>> extends BaseEvent<E>
BaseEvent, thereby inheriting methods related to time management,
and adds methods specific to event identification and manipulation.
NOTE: Only use this interface if the eventId is required as the eventTime is sufficient in most cases
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static void |
copyEventDetails(Event<?> from,
Event<?> to)
Copies essential details from one event to another.
|
default @NotNull CharSequence |
eventId()
Retrieves the unique identifier associated with this event.
|
default E |
eventId(@NotNull CharSequence eventId)
Assigns an identifier to this event.
|
default E |
updateEvent(String eventName)
Updates the event with a new name, and if the event time is not already set,
updates the event time to the current system time.
|
eventTime, eventTime, eventTimeNow, updateEvent$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedField@NotNull default @NotNull CharSequence eventId()
default E eventId(@NotNull @NotNull CharSequence eventId)
eventId - The unique identifier to assign to this event.default E updateEvent(String eventName)
eventName - The new name to be assigned to the event.static void copyEventDetails(Event<?> from, Event<?> to)
from - The source event from which details are copied.to - The target event to which details are copied.Copyright © 2024. All rights reserved.