ArrayComparator<ItemType>
An efficient comparator for WatchedQuery created with Query#watch. This has the ability to determine if a query result has changes without necessarily processing all items in the result.
Type Parameters
| Type Parameter |
|---|
ItemType |
Implements
WatchedQueryComparator<ItemType[]>
Constructors
new ArrayComparator()
new ArrayComparator<ItemType>(options): ArrayComparator<ItemType>
Parameters
| Parameter | Type |
|---|---|
options | ArrayComparatorOptions<ItemType> |
Returns
ArrayComparator<ItemType>
Methods
checkEquality()
checkEquality(current, previous): boolean
Parameters
| Parameter | Type |
|---|---|
current | ItemType[] |
previous | ItemType[] |
Returns
boolean