Package io.github.simplexdevelopment.api
Interface Identifier
- All Known Subinterfaces:
IService
- All Known Implementing Classes:
ExecutableService
,ServiceImpl
,ServicePool
public interface Identifier
This interface provides a method for retrieving a name, unique identifier, and numerical id for a class.
-
Method Details
-
getName
String getName()- Returns:
- The name of the identifiable object in a readable format.
-
getUniqueId
- Returns:
- The UUID of the identifiable object, based on the
getName()
value. This is calculated usingUUID.nameUUIDFromBytes(byte[])
.
-
getNumericalId
default int getNumericalId()- Returns:
- The numerical id of the identifiable object, based on the
getUniqueId()
value. This is calculated usingUUID.hashCode()
.
-