IdentifierProvider Interface
public interface IdentifierProvider
The IdentifierProvider to help generate distinct values.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String |
getRandomName(String prefix, int maxLen)
Gets a random name. |
abstract String |
getRandomUuid()
Gets a random UUID. |
Method Details
getRandomName
public abstract String getRandomName(String prefix, int maxLen)
Gets a random name.
Parameters:
prefix
- the prefix to be used if possible
maxLen
- the max length for the random generated name
Returns:
the random name
getRandomUuid
public abstract String getRandomUuid()
Gets a random UUID.
Returns:
the UUID string.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java