Class HashSet
System.Collections.IDictionary-based System.Collections.ICollection implementation that contains no duplicate elements.
Implements
Inherited Members
Namespace: Tangosol.Util.Collections
Assembly: Coherence.Core.dll
Syntax
public class HashSet : DictionarySet, ICollection, IEnumerable, ISerializable
Constructors
| Improve this Doc View SourceHashSet()
Create a new HashSet.
Declaration
public HashSet()
HashSet(SerializationInfo, StreamingContext)
Initializes a new instance of the HashSet class using the
specified
System.Runtime.Serialization.SerializationInfo
and System.Runtime.Serialization.StreamingContext.
Declaration
protected HashSet(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | A System.Runtime.Serialization.SerializationInfo
object containing the information required to initialize this
|
| StreamingContext | context | A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with this dictionary. |
HashSet(ICollection)
Create and populate a new HashSet with the given collection
of elements.
Declaration
public HashSet(ICollection items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.ICollection | items | The collection of elements to populate the set with. |
HashSet(IDictionary)
Create a new HashSet that uses the specified IDictionary to
store its elements.
Declaration
protected HashSet(IDictionary dict)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IDictionary | dict | The storage dictionary. |
HashSet(Int32)
Create a new HashSet with the specified initial capacity.
Declaration
public HashSet(int capacity)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | capacity | The initial capacity of the backing dictionary. |