Search
Preparing search index...
The search index is not available
js-value-object
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
js-value-object
NumberValueObject
Class NumberValueObject
Hierarchy
ValueObject
<
number
>
NumberValueObject
Index
Constructors
constructor
Properties
max
min
name
value
Accessors
is
Valid
Methods
is
Equal
or
Fail
to
String
validate
create
Constructors
Private
constructor
new
Number
Value
Object
(
props
:
INumberValueObjectProps
)
:
NumberValueObject
Parameters
props:
INumberValueObjectProps
Returns
NumberValueObject
Properties
Private
max
max
:
number
Private
min
min
:
number
Readonly
name
name
:
string
Readonly
value
value
:
number
Accessors
is
Valid
get
isValid
(
)
:
boolean
Returns
boolean
Methods
is
Equal
is
Equal
(
vo
:
ValueObject
<
unknown
>
)
:
boolean
Parameters
vo:
ValueObject
<
unknown
>
Returns
boolean
or
Fail
or
Fail
(
)
:
NumberValueObject
description
Throw exception if the value objects are invalid
Returns
NumberValueObject
to
String
to
String
(
)
:
string
Returns
string
Protected
validate
validate
(
)
:
boolean
Returns
boolean
Static
create
create
(
props
:
INumberValueObjectProps
)
:
NumberValueObject
Parameters
props:
INumberValueObjectProps
Returns
NumberValueObject
Exports
Number
Value
Object
constructor
max
min
name
value
is
Valid
is
Equal
or
Fail
to
String
validate
create
Generated using
TypeDoc
Throw exception if the value objects are invalid