maya-dates

@drewsonne/maya-dates / Exports / LongcountSubtraction

Class: LongcountSubtraction

Base class for operations that manipulate LongCount values.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LongcountSubtraction(lcClass, a, b)

Parameters

Name Type Description
lcClass ILongcount LongCount constructor passed in to avoid circular dependencies.
a DistanceNumber First operand.
b DistanceNumber Second operand.

Inherited from

LongcountOperation.constructor

Defined in

operations/longcount-operation.ts:22

Properties

LcClass

Protected Readonly LcClass: ILongcount

Inherited from

LongcountOperation.LcClass

Defined in

operations/longcount-operation.ts:15


a

Protected Readonly a: DistanceNumber

Inherited from

LongcountOperation.a

Defined in

operations/longcount-operation.ts:13


b

Protected Readonly b: DistanceNumber

Inherited from

LongcountOperation.b

Defined in

operations/longcount-operation.ts:14


comment

comment: Comment

Attached comment.

Inherited from

LongcountOperation.comment

Defined in

comment-wrapper.ts:11

Methods

appendComment

appendComment(comment): any

Append additional text to the current comment.

Parameters

Name Type
comment string | Comment

Returns

any

Inherited from

LongcountOperation.appendComment

Defined in

comment-wrapper.ts:34


buildOperationComponents

Protected buildOperationComponents(): [(number | Wildcard)[], (number | Wildcard)[], boolean]

Returns

[(number | Wildcard)[], (number | Wildcard)[], boolean]

Inherited from

LongcountOperation.buildOperationComponents

Defined in

operations/longcount-operation.ts:29


commentIsEqual

commentIsEqual(otherCommentWrapper): boolean

Compare this wrapper’s comment against another wrapper.

Parameters

Name Type
otherCommentWrapper CommentWrapper

Returns

boolean

Inherited from

LongcountOperation.commentIsEqual

Defined in

comment-wrapper.ts:52


equal

equal(other): boolean

Compare this object with another for equality.

Parameters

Name Type
other any

Returns

boolean

Overrides

LongcountOperation.equal

Defined in

operations/longcount-subtraction.ts:54


equalWithComment

equalWithComment(otherCommentWrapper): boolean

Check equality including the associated comment.

Parameters

Name Type
otherCommentWrapper IPart

Returns

boolean

Inherited from

LongcountOperation.equalWithComment

Defined in

comment-wrapper.ts:59


equals

equals(): IPart

Calculate the resulting LongCount difference.

Returns

IPart

Defined in

operations/longcount-subtraction.ts:13


setComment

setComment(comment): any

Replace the current comment.

Parameters

Name Type
comment string | Comment

Returns

any

Inherited from

LongcountOperation.setComment

Defined in

comment-wrapper.ts:20