Class: ImmutablePkgSet<Pkg>
@pvm/core.ImmutablePkgSet
Type parameters
Name | Type |
---|---|
Pkg | extends Pkg Pkg |
Hierarchy
ImmutablePkgSet
↳
PkgSet
Implements
Iterable
<Pkg
>
Constructors
constructor
• new ImmutablePkgSet<Pkg
>(packages?
)
Type parameters
Name | Type |
---|---|
Pkg | extends Pkg <Pkg >Pkg |
Parameters
Name | Type | Default value |
---|---|---|
packages | Iterable <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
Name | Type |
---|---|
pkgOrName | string | Pkg |
Returns
undefined
| Pkg
Defined in
packages/pvm-core/lib/pkg-set.ts:15
has
â–¸ has(pkgOrName
): boolean
Parameters
Name | Type |
---|---|
pkgOrName | string | 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
Name | Type |
---|---|
fn | (pkg : Pkg ) => T |
Returns
T
[]
Defined in
packages/pvm-core/lib/pkg-set.ts:53
toArray
â–¸ toArray(): Pkg
[]
Returns
Pkg
[]