* Creates an instance of RuntimeSpecSet. * @param {Iterable<RuntimeSpec>=} iterable iterable
(iterable)
| 690 | * @param {Iterable<RuntimeSpec>=} iterable iterable |
| 691 | */ |
| 692 | constructor(iterable) { |
| 693 | /** @type {Map<string, RuntimeSpec>} */ |
| 694 | this._map = new Map(); |
| 695 | if (iterable) { |
| 696 | for (const item of iterable) { |
| 697 | this.add(item); |
| 698 | } |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | /** |
| 703 | * Processes the provided runtime. |