the actual value of this ValueObject
Static
createa Result
with the created Integer
to create the Integer of
Optional
options: IntegerOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created Integers
an array of primitives to map to an array of Integers
Optional
options: IntegerOptions & 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 not allowed decimal digits
if the value is not inside the interval
to be validated as an integer with the corresponding constraints (options)
Optional
options: IntegerOptionsconstraints the value has to fulfill
Generated using TypeDoc
An Integer (
number
without decimal digits)Example
Fails