IntervalCollectionIterator Class
Signature
export declare class IntervalCollectionIterator<TInterval extends ISerializableInterval>
Type Parameters
| Parameter | Constraint | Description |
|---|---|---|
| TInterval | ISerializableInterval |
Constructors
| Constructor | Description |
|---|---|
| (constructor)(collection, iteratesForward, start, end) | Constructs a new instance of the IntervalCollectionIterator class |
Methods
| Method | Return Type | Description |
|---|---|---|
| next() | { value: TInterval; done: boolean; } |
Constructor Details
(constructor)
Constructs a new instance of the IntervalCollectionIterator class
Signature
constructor(collection: IntervalCollection<TInterval>, iteratesForward?: boolean, start?: number, end?: number);
Parameters
| Parameter | Modifiers | Type | Description |
|---|---|---|---|
| collection | IntervalCollection<TInterval> | ||
| iteratesForward | optional | boolean | |
| start | optional | number | |
| end | optional | number |
Method Details
next
Signature
next(): {
value: TInterval;
done: boolean;
};
Returns
Return type: { value: TInterval; done: boolean; }