RegistrationTokenMap
Utility class to generate unique tokens of type T and associate a value of type V to this token. Tokens are created by using the tokenFactory.
This class is thread-safe.
It is assumed tokens can be reused after a Int.MAX_VALUE rollover.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the associated value of token. Null when the token is not mapped.
Link copied to clipboard
Link copied to clipboard
Removes the associated value of token, if any, from the map.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard