SequenceInterval Class
Packages > @fluidframework/sequence > SequenceInterval
Signature:
export declare class SequenceInterval implements ISerializableInterval
Implements: ISerializableInterval
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(start, end, intervalType, props) | Constructs a new instance of the SequenceInterval class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
end | MergeTree.LocalReference | ||
intervalType | MergeTree.IntervalType | ||
properties | MergeTree.PropertySet | ||
start | MergeTree.LocalReference |
Methods
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
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
Parameter | Type | Description |
---|---|---|
newProps | MergeTree.PropertySet | |
op | MergeTree.ICombiningOp |
Returns:
void
clone
Signature:
clone(): SequenceInterval;
Returns:
compare
Signature:
compare(b: SequenceInterval): number;
Parameters
Parameter | Type | Description |
---|---|---|
b | SequenceInterval |
Returns:
number
overlaps
Signature:
overlaps(b: SequenceInterval): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
b | SequenceInterval |
Returns:
boolean
overlapsPos
Signature:
overlapsPos(bstart: number, bend: number): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
bstart | number | |
bend | number |
Returns:
boolean
serialize
Signature:
serialize(client: MergeTree.Client): ISerializedInterval;
Parameters
Parameter | Type | Description |
---|---|---|
client | MergeTree.Client |
Returns:
union
Signature:
union(b: SequenceInterval): SequenceInterval;
Parameters
Parameter | Type | Description |
---|---|---|
b | SequenceInterval |
Returns: