Package de.espirit.firstspirit.event
Class BusIdentifier<T extends Serializable>
java.lang.Object
de.espirit.firstspirit.event.BusIdentifier<T>
- Type Parameters:
T
- The type of the events on this bus.
- All Implemented Interfaces:
Serializable
An identifier for an event bus.
- Since:
- 5.2.220703
- See Also:
-
Constructor Summary
ConstructorDescriptionBusIdentifier
(@NotNull String identifier, @NotNull Class<T> eventType) Creates a newBusIdentifier
-
Method Summary
-
Constructor Details
-
BusIdentifier
Creates a newBusIdentifier
- Parameters:
identifier
- the unique identifiereventType
- the type of events handled by this identifier- Since:
- 5.2.220703
-
-
Method Details
-
identifier
Returns the unique identifier.- Returns:
- the unique identifier, never
null
- Since:
- 5.2.220703
-
eventType
Returns the type of events handled by this identifier.- Returns:
- the type of events handled by this identifier, never
null
- Since:
- 5.2.220703
-
hashCode
public int hashCode() -
equals
-
toString
-