Class HashSetExtensions
Provides extension methods for sets.
Namespace: Unity.Collections
Assembly: Unity.Collections.dll
Syntax
public static class HashSetExtensions
Methods
ExceptWith<T>(NativeParallelHashSet<T>, FixedList128Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList128Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, FixedList32Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList32Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, FixedList4096Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList4096Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, FixedList512Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList512Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, FixedList64Bytes<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList64Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, NativeArray<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeArray<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, NativeList<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
ExceptWith<T>(NativeParallelHashSet<T>, NativeParallelHashSet<T>)
Removes the values from this set which are also present in another collection.
Declaration
public static void ExceptWith<T>(this NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeParallelHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, FixedList128Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList128Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, FixedList32Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList32Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, FixedList4096Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList4096Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, FixedList512Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList512Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, FixedList64Bytes<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
FixedList64Bytes<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, NativeArray<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeArray<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, NativeList<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeList<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
IntersectWith<T>(NativeParallelHashSet<T>, NativeParallelHashSet<T>)
Removes the values from this set which are absent in another collection.
Declaration
public static void IntersectWith<T>(this NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to remove values from. |
NativeParallelHashSet<T> | other | The collection to compare with. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, FixedList128Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
FixedList128Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, FixedList32Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
FixedList32Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, FixedList4096Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
FixedList4096Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, FixedList512Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
FixedList512Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, FixedList64Bytes<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
FixedList64Bytes<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, NativeArray<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
NativeArray<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, NativeList<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
NativeList<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |
UnionWith<T>(NativeParallelHashSet<T>, NativeParallelHashSet<T>)
Adds all values from a collection to this set.
Declaration
public static void UnionWith<T>(this NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
NativeParallelHashSet<T> | container | The set to add values to. |
NativeParallelHashSet<T> | other | The collection to copy values from. |
Type Parameters
Name | Description |
---|---|
T | The type of values. |