the actual value of this ValueObject
Static
createa Result
with the created NumericId
to create the NumericId of
Optional
options: NumericIdOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created NumericIds
an array of primitives to map to an array of NumericIds
Optional
options: NumericIdOptions & 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
toStatic
validatethe value if the validation was successful
if not a valid integer
if the value has decimal digits
if the value is not inside the interval (at least positive)
to be validated as an integer with the corresponding constraints (options)
Optional
options: NumericIdOptionsconstraints the value has to fulfill
Generated using TypeDoc
A special Integer with the predefined interval [0,∞]
which will not accept and parse floating point numbers.
Example
Fails