Class HashSetList<T>
Wrapper data structure for hashset, that leans on a list for deterministic sort order
Inherited Members
Namespace: Unity.XR.CoreUtils .Collections
Assembly: solution.dll
Syntax
public class HashSetList<T> : ISerializable, IDeserializationCallback, ISet<T>, ICollection<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | HashSetList type |
Constructors
Name | Description |
---|---|
Hash |
Allocates internal list and hashset. |
Properties
Methods
Name | Description |
---|---|
Add(T) | Attempt to add item to internal hashset. If it is not already in the hashset, add it to the list. |
As |
Exposes internal list without any allocation. |
Clear() | Clear both internal hashset and list. |
Contains(T) | Checks if internal hashset contains item. |
Copy |
Copies out internal list as array. |
Except |
Except operation with hashset. Regenerates internal list from new hashset. |
Get |
Creates enumerator for internal list. |
Get |
Calls internal hashset |
Intersect |
|
Is |
|
Is |
|
Is |
|
Is |
|
On |
Deserializes sender object into internal hashset and refreshes list. |
Overlaps(IEnumerable<T>) |
|
Remove(T) | Attempt to remove item to internal hashset. If it is still present in the hashset, remove it from the list. |
Set |
Check if set equals other Overlaps(IEnumerable<T>) operation with hashset. |
Symmetric |
|
Union |
|