Skip to main content

LongcountAddition

Defined in: operations/longcount-addition.ts:7

Base class for operations that manipulate LongCount values.

Extends

Constructors

Constructor

new LongcountAddition(lcClass, a, b): LongcountAddition

Defined in: operations/longcount-operation.ts:22

Parameters

lcClass

ILongcount

LongCount constructor passed in to avoid circular dependencies.

a

DistanceNumber

First operand.

b

DistanceNumber

Second operand.

Returns

LongcountAddition

Inherited from

LongcountOperation.constructor

Properties

comment

comment: Comment

Defined in: comment-wrapper.ts:11

Attached comment.

Inherited from

LongcountOperation.comment

Methods

appendComment()

appendComment(comment): this

Defined in: comment-wrapper.ts:42

Append additional text to the current comment.

Parameters

comment

string | Comment

Returns

this

Inherited from

LongcountOperation.appendComment


commentIsEqual()

commentIsEqual(otherCommentWrapper): boolean

Defined in: comment-wrapper.ts:60

Compare this wrapper's comment against another wrapper.

Parameters

otherCommentWrapper

CommentWrapper

Returns

boolean

Inherited from

LongcountOperation.commentIsEqual


equal()

equal(other): boolean

Defined in: operations/longcount-addition.ts:47

Compare this object with another for equality.

Parameters

other

unknown

Returns

boolean

Overrides

LongcountOperation.equal


equals()

equals(): DistanceNumber

Defined in: operations/longcount-addition.ts:12

Calculate the resulting LongCount.

Returns

DistanceNumber


equalWithComment()

equalWithComment(otherCommentWrapper): boolean

Defined in: comment-wrapper.ts:67

Check equality including the associated comment.

Parameters

otherCommentWrapper

IPart

Returns

boolean

Inherited from

LongcountOperation.equalWithComment


resetComment()

resetComment(): this

Defined in: comment-wrapper.ts:20

Reset the current comment back to an empty comment.

Returns

this

Inherited from

LongcountOperation.resetComment


setComment()

setComment(comment): this

Defined in: comment-wrapper.ts:28

Replace the current comment.

Parameters

comment

string | Comment

Returns

this

Inherited from

LongcountOperation.setComment