Interface IdFactory
-
public interface IdFactory
Factory providing ability to create unique identifiers- Author:
- Christopher Laszczuk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.flower.docs.domain.common.Id
generateId()
Generates a random unique identifier.com.flower.docs.domain.common.Id
generateId(java.lang.String value)
Generates an identifier from input string.
-
-
-
Method Detail
-
generateId
com.flower.docs.domain.common.Id generateId()
Generates a random unique identifier.- Returns:
- A random
Id
-
generateId
com.flower.docs.domain.common.Id generateId(java.lang.String value)
Generates an identifier from input string.
This method must generate the same Id for same input values- Parameters:
value
- The value ofId
- Returns:
- The built
Id
-
-