rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
242 lines (106 loc) • 2.96 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [DirtyCheckedUniqueCollection](./rc-js-util.dirtycheckeduniquecollection.md)
## DirtyCheckedUniqueCollection class
Provides a unique array with O(1) add & remove, with dirty checking on `getArray`<!-- -->.
**Signature:**
```typescript
export declare class DirtyCheckedUniqueCollection<TItem> implements IDirtyCheckedUniqueCollection<TItem>, ISetLike<TItem>
```
**Implements:** [IDirtyCheckedUniqueCollection](./rc-js-util.idirtycheckeduniquecollection.md)<!-- --><TItem>, [ISetLike](./rc-js-util.isetlike.md)<!-- --><TItem>
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[(constructor)(itemsToCopy)](./rc-js-util.dirtycheckeduniquecollection._constructor_.md)
</td><td>
</td><td>
Constructs a new instance of the `DirtyCheckedUniqueCollection` class
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[isDirty](./rc-js-util.dirtycheckeduniquecollection.isdirty.md)
</td><td>
</td><td>
boolean
</td><td>
</td></tr>
<tr><td>
[size](./rc-js-util.dirtycheckeduniquecollection.size.md)
</td><td>
`readonly`
</td><td>
number
</td><td>
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[add(item)](./rc-js-util.dirtycheckeduniquecollection.add.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[clear()](./rc-js-util.dirtycheckeduniquecollection.clear.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[delete(item)](./rc-js-util.dirtycheckeduniquecollection.delete.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[getArray()](./rc-js-util.dirtycheckeduniquecollection.getarray.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[getSet()](./rc-js-util.dirtycheckeduniquecollection.getset.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[has(item)](./rc-js-util.dirtycheckeduniquecollection.has.md)
</td><td>
</td><td>
</td></tr>
<tr><td>
[mapInitializeAdd(map, key, value)](./rc-js-util.dirtycheckeduniquecollection.mapinitializeadd.md)
</td><td>
`static`
</td><td>
</td></tr>
<tr><td>
[mapInitializeAdd(map, key, value)](./rc-js-util.dirtycheckeduniquecollection.mapinitializeadd_1.md)
</td><td>
`static`
</td><td>
</td></tr>
<tr><td>
[reportingAdd(item)](./rc-js-util.dirtycheckeduniquecollection.reportingadd.md)
</td><td>
</td><td>
</td></tr>
</tbody></table>