Class StandardToken
java.lang.Object
com.minecolonies.api.colony.requestsystem.token.StandardToken
Internal implementation of the IToken interface. Uses UUID to store the ID of the request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new token with a random id.StandardToken(@NotNull UUID id) Creates a new token with the given id. -
Method Summary
-
Constructor Details
-
StandardToken
public StandardToken()Creates a new token with a random id. -
StandardToken
Creates a new token with the given id.- Parameters:
id- the UUID to create it from.
-
-
Method Details
-
getIdentifier
The identifier used to represent a request.- Specified by:
getIdentifierin interfaceIToken<UUID>- Returns:
- The identifier of the request that this token represents.
-
hashCode
public int hashCode() -
equals
-
toString
-