IInterval Interface
Basic interval abstraction \
This API is provided for existing users, but is not recommended for new users.
To use, import via fluid-framework/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface IInterval
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
compare(b) | Beta |
number | Compares this interval to b with standard comparator semantics: - returns -1 if this is less than b - returns 1 if this is greater than b - returns 0 if this is equivalent to b |
compareEnd(b) | Beta |
number | Compares the end endpoint of this interval to b 's end endpoint. Standard comparator semantics apply. |
compareStart(b) | Beta |
number | Compares the start endpoint of this interval to b 's start endpoint. Standard comparator semantics apply. |
overlaps(b) | Beta |
boolean |
Method Details
compare
Compares this interval to b
with standard comparator semantics: - returns -1 if this is less than b
- returns 1 if this is greater than b
- returns 0 if this is equivalent to b
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
compare(b: IInterval): number;