Compartilhar via


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