the actual value of this ValueObject
Static
createCreates an Identifier (NonEmptyString
) from the given id
.
If no id is given, a new uuid (v4) will be used!
a Result
with the created Identifier
Optional
id: stringOptional
options: IdentifierOptionsconstraints for the structure of the string
Static
froma Result
with an array of created Identifiers
an array of primitives to map to an array of Identifiers
Optional
options: IdentifierOptions & ListCreationOptionsconstraints the values / list has to fulfill
Static
listcompares 2 Lists of ValueObjects / values on equality
true if the lists are equal
the list of ValueObjects to compare with
a list of ValueObjects / values for comparison
Static
tothe array of values
an array of Identifiers to map to an array of their values
Static
validatethe value if the validation was successful
if not a string or empty
if the value doesn't fit the given enum / range
if the value is not matching the regex
if the value's length is not inside the interval
to be validated as a not empty string with the corresponding constraints (options)
Optional
options: NonEmptyStringOptionsconstraints the value has to fulfill
Generated using TypeDoc
An Identifier used for Entitied
Example
Fails