Abstract
Protected
constructorOptional
weight: numberThe weight
parameter is an optional number that represents the weight of the object. If
a value is provided, it will be assigned to the _weight
property. If no value is provided, the default value of 1
will be assigned.
Optional
value: EThe value
parameter is of type VO
, which means it can be any type. It is an optional parameter,
meaning it can be omitted when creating an instance of the class.
Generated using TypeDoc
The above function is a protected constructor that initializes the weight, value, and hash code properties of an object.