Skip to main content

Class: ImmutablePkgSet<Pkg>

@pvm/core.ImmutablePkgSet

Type parameters

NameType
Pkgextends PkgPkg

Hierarchy

Implements

  • Iterable<Pkg>

Constructors

constructor

• new ImmutablePkgSet<Pkg>(packages?)

Type parameters

NameType
Pkgextends Pkg<Pkg>Pkg

Parameters

NameTypeDefault value
packagesIterable<Pkg>[]

Defined in

packages/pvm-core/lib/pkg-set.ts:11

Properties

_map

• Protected _map: Map<string, Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:9

Accessors

size

• get size(): number

Returns

number

Defined in

packages/pvm-core/lib/pkg-set.ts:45

Methods

[iterator]

â–¸ [iterator](): IterableIterator<Pkg>

Returns

IterableIterator<Pkg>

Implementation of

Iterable.__@iterator@79

Defined in

packages/pvm-core/lib/pkg-set.ts:41


asMut

â–¸ asMut(): PkgSet<Pkg>

Returns

PkgSet<Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:63


clone

â–¸ clone(): ImmutablePkgSet<Pkg>

Returns

ImmutablePkgSet<Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:57


get

â–¸ get(pkgOrName): undefined | Pkg

Parameters

NameType
pkgOrNamestring | Pkg

Returns

undefined | Pkg

Defined in

packages/pvm-core/lib/pkg-set.ts:15


has

â–¸ has(pkgOrName): boolean

Parameters

NameType
pkgOrNamestring | Pkg

Returns

boolean

Defined in

packages/pvm-core/lib/pkg-set.ts:37


keys

â–¸ keys(): IterableIterator<string>

Returns

IterableIterator<string>

Defined in

packages/pvm-core/lib/pkg-set.ts:33


map

â–¸ map<T>(fn): T[]

Type parameters

Name
T

Parameters

NameType
fn(pkg: Pkg) => T

Returns

T[]

Defined in

packages/pvm-core/lib/pkg-set.ts:53


toArray

â–¸ toArray(): Pkg[]

Returns

Pkg[]

Defined in

packages/pvm-core/lib/pkg-set.ts:49