Skip to content 

SequenceInterval Class

Packages > @fluidframework/sequence > SequenceInterval

Signature:

export declare class SequenceInterval implements ISerializableInterval 

Implements: ISerializableInterval

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(start, end, intervalType, props) Constructs a new instance of the SequenceInterval class

Properties

List of properties for this class
Property Modifiers Type Description
end MergeTree.LocalReference
intervalType MergeTree.IntervalType
properties MergeTree.PropertySet
start MergeTree.LocalReference

Methods

List of methods on this class
Method Modifiers Description
addProperties(newProps, op)
clone()
compare(b)
overlaps(b)
overlapsPos(bstart, bend)
serialize(client)
union(b)

Constructors

SequenceInterval.(constructor)

Constructs a new instance of the SequenceInterval class

Signature:

constructor(start: MergeTree.LocalReference, end: MergeTree.LocalReference, intervalType: MergeTree.IntervalType, props?: MergeTree.PropertySet);

Parameters

List of parameters
Parameter Type Description
start MergeTree.LocalReference
end MergeTree.LocalReference
intervalType MergeTree.IntervalType
props MergeTree.PropertySet

Properties

end

Signature:

end: MergeTree.LocalReference;

intervalType

Signature:

intervalType: MergeTree.IntervalType;

properties

Signature:

properties: MergeTree.PropertySet;

start

Signature:

start: MergeTree.LocalReference;

Methods

addProperties

Signature:

addProperties(newProps: MergeTree.PropertySet, op?: MergeTree.ICombiningOp): void;

Parameters

List of parameters
Parameter Type Description
newProps MergeTree.PropertySet
op MergeTree.ICombiningOp

Returns:

void

clone

Signature:

clone(): SequenceInterval;

Returns:

SequenceInterval

compare

Signature:

compare(b: SequenceInterval): number;

Parameters

List of parameters
Parameter Type Description
b SequenceInterval

Returns:

number

overlaps

Signature:

overlaps(b: SequenceInterval): boolean;

Parameters

List of parameters
Parameter Type Description
b SequenceInterval

Returns:

boolean

overlapsPos

Signature:

overlapsPos(bstart: number, bend: number): boolean;

Parameters

List of parameters
Parameter Type Description
bstart number
bend number

Returns:

boolean

serialize

Signature:

serialize(client: MergeTree.Client): ISerializedInterval;

Parameters

List of parameters
Parameter Type Description
client MergeTree.Client

Returns:

ISerializedInterval

union

Signature:

union(b: SequenceInterval): SequenceInterval;

Parameters

List of parameters
Parameter Type Description
b SequenceInterval

Returns:

SequenceInterval