ForgeDocs
Documentation for the forge framework
|
Generates unique integers that are sequential. This class is thread-safe. More...
Public Member Functions | |
int | Next () |
Returns the next unique int. More... | |
void | Consume (int value) |
Notifies that UniqueIdGenerator that the given ID has already been consumed. Please note that this API is not thread-safe. More... | |
Generates unique integers that are sequential. This class is thread-safe.
void Forge.Utilities.UniqueIntGenerator.Consume | ( | int | value | ) |
Notifies that UniqueIdGenerator that the given ID has already been consumed. Please note that this API is not thread-safe.
int Forge.Utilities.UniqueIntGenerator.Next | ( | ) |
Returns the next unique int.