@drewsonne/maya-dates / Exports / LongcountSubtraction
Base class for operations that manipulate LongCount values.
↳ LongcountSubtraction
• new LongcountSubtraction(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-subtraction.ts:54
▸ equalWithComment(otherCommentWrapper
): boolean
Check equality including the associated comment.
Name | Type |
---|---|
otherCommentWrapper |
IPart |
boolean
LongcountOperation.equalWithComment
▸ equals(): IPart
Calculate the resulting LongCount difference.
operations/longcount-subtraction.ts:13
▸ setComment(comment
): any
Replace the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any