Package civitas.celestis.util
Interface Unique<K>
- Type Parameters:
K- The type of key this object uses
- All Known Subinterfaces:
Cancellable,Handleable
- All Known Implementing Classes:
ApplicationEvent,ApplicationStartedEvent,ApplicationStoppingEvent,CancellableEvent,Event,NotificationEvent
public interface Unique<K>
A unique object which can be identified by a unique identifier of type
K.
Unique identifiers should be unique within the lifecycle of this object and its usage context.-
Method Summary
-
Method Details
-
getUniqueId
Returns the unique identifier of this object. This identifier is guaranteed to be unique within the lifecycle and context of this object.- Returns:
- The unique identifier of this object
-