the actual value of this ValueObject
Static
createa Result
with the created NonEmptyString
to create the NonEmptyString of
Optional
options: NonEmptyStringOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created NonEmptyStrings
an array of primitives to map to an array of NonEmptyStrings
Optional
options: NonEmptyStringOptions & 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 NonEmptyStrings 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
A String that is definitely a String that is not empty
Example
Fails