Interface UuidGenerator
public interface UuidGenerator
This code is experimental. While this interface is functional and tested, it may change or be
removed in a future version of the library. The
UuidGenerator generates UUIDs-
Method Summary
Modifier and TypeMethodDescriptiongenerateKnownId(String metacardTag, String userId, String... additionalInput) Returns a generated uuid for a MetacardbooleanReturns true if the generated UUIDs contain hyphens or notbooleanvalidateUuid(String uuid) Returns true if the UUID format is correct
-
Method Details
-
generateUuid
String generateUuid()Returns a generated uuid for a Metacard- Returns:
-
generateKnownId
- Parameters:
metacardTag- tag of metacard to generate ID foruserId- user the metacard is being created foradditionalInput- any additional properties- Returns:
- UUID
-
validateUuid
Returns true if the UUID format is correct- Parameters:
uuid- - the given UUID- Returns:
-
useHyphens
boolean useHyphens()Returns true if the generated UUIDs contain hyphens or not
-