@drewsonne/maya-dates / Exports / LongcountOperation
Base class for operations that manipulate LongCount values.
↳ LongcountOperation
• new LongcountOperation(lcClass
, a
, b
)
Name | Type | Description |
---|---|---|
lcClass |
ILongcount |
LongCount constructor passed in to avoid circular dependencies. |
a |
DistanceNumber |
First operand. |
b |
DistanceNumber |
Second operand. |
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
▸ Protected
buildOperationComponents(): [(number
| Wildcard
)[], (number
| Wildcard
)[], boolean
]
[(number
| Wildcard
)[], (number
| Wildcard
)[], boolean
]
operations/longcount-operation.ts:29
▸ commentIsEqual(otherCommentWrapper
): boolean
Compare this wrapper’s comment against another wrapper.
Name | Type |
---|---|
otherCommentWrapper |
CommentWrapper |
boolean
▸ Abstract
equal(other
): boolean
Compare this object with another for equality.
Name | Type |
---|---|
other |
any |
boolean
operations/longcount-operation.ts:11
▸ equalWithComment(otherCommentWrapper
): boolean
Check equality including the associated comment.
Name | Type |
---|---|
otherCommentWrapper |
IPart |
boolean
CommentWrapper.equalWithComment
▸ setComment(comment
): any
Replace the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any