Home > rc-js-util > DirtyCheckedUniqueCollection
Provides a unique array with O(1) add & remove, with dirty checking on getArray
.
Signature:
export declare class DirtyCheckedUniqueCollection<TItem> implements IDirtyCheckedUniqueCollection<TItem>, ISetLike<TItem>
Implements: IDirtyCheckedUniqueCollection<TItem>, ISetLike
Constructor | Modifiers | Description |
---|---|---|
(constructor)(itemsToCopy) | Constructs a new instance of the DirtyCheckedUniqueCollection class |
Property | Modifiers | Type | Description |
---|---|---|---|
isDirty | boolean | ||
size | number |
Method | Modifiers | Description |
---|---|---|
add(item) | ||
clear() | ||
delete(item) | ||
getArray() | ||
getSet() | ||
has(item) | ||
mapInitializeAdd(map, key, value) | static |
|
mapInitializeAdd(map, key, value) | static |
|
reportingAdd(item) |