js-util

Home > rc-js-util > DirtyCheckedUniqueCollection

DirtyCheckedUniqueCollection class

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

Constructors

Constructor Modifiers Description
(constructor)(itemsToCopy)   Constructs a new instance of the DirtyCheckedUniqueCollection class

Properties

Property Modifiers Type Description
isDirty   boolean  
size   number  

Methods

Method Modifiers Description
add(item)    
clear()    
delete(item)    
getArray()    
getSet()    
has(item)    
mapInitializeAdd(map, key, value) static  
mapInitializeAdd(map, key, value) static  
reportingAdd(item)