@drewsonne/maya-dates / Exports / LongcountAddition
Base class for operations that manipulate LongCount values.
↳ LongcountAddition
• new LongcountAddition(lcClass, a, b)
| Name | Type | Description |
|---|---|---|
lcClass |
ILongcount |
LongCount constructor passed in to avoid circular dependencies. |
a |
DistanceNumber |
First operand. |
b |
DistanceNumber |
Second operand. |
LongcountOperation.constructor
operations/longcount-operation.ts:22
• Protected Readonly LcClass: ILongcount
operations/longcount-operation.ts:15
• Protected Readonly a: DistanceNumber
operations/longcount-operation.ts:13
• Protected Readonly b: DistanceNumber
operations/longcount-operation.ts:14
• comment: Comment
Attached comment.
▸ appendComment(comment): any
Append additional text to the current comment.
| Name | Type |
|---|---|
comment |
string | Comment |
any
LongcountOperation.appendComment
▸ Protected buildOperationComponents(): [(number | Wildcard)[], (number | Wildcard)[], boolean]
[(number | Wildcard)[], (number | Wildcard)[], boolean]
LongcountOperation.buildOperationComponents
operations/longcount-operation.ts:29
▸ commentIsEqual(otherCommentWrapper): boolean
Compare this wrapper’s comment against another wrapper.
| Name | Type |
|---|---|
otherCommentWrapper |
CommentWrapper |
boolean
LongcountOperation.commentIsEqual
▸ equal(other): boolean
Compare this object with another for equality.
| Name | Type |
|---|---|
other |
any |
boolean
operations/longcount-addition.ts:45
▸ equalWithComment(otherCommentWrapper): boolean
Check equality including the associated comment.
| Name | Type |
|---|---|
otherCommentWrapper |
IPart |
boolean
LongcountOperation.equalWithComment
▸ equals(): DistanceNumber
Calculate the resulting LongCount.
operations/longcount-addition.ts:12
▸ setComment(comment): any
Replace the current comment.
| Name | Type |
|---|---|
comment |
string | Comment |
any