Show / Hide Table of Contents

Class HashSet

System.Collections.IDictionary-based System.Collections.ICollection implementation that contains no duplicate elements.

Inheritance
System.Object
DictionarySet
HashSet
SortedHashSet
Implements
System.Collections.ICollection
System.Collections.IEnumerable
ISerializable
Inherited Members
DictionarySet.Add(Object)
DictionarySet.Contains(Object)
DictionarySet.Remove(Object)
DictionarySet.Clear()
DictionarySet.GetEnumerator()
DictionarySet.CopyTo(Array, Int32)
DictionarySet.Count
DictionarySet.IsSynchronized
DictionarySet.SyncRoot
DictionarySet.GetObjectData(SerializationInfo, StreamingContext)
DictionarySet.Equals(Object)
DictionarySet.Equals(DictionarySet)
DictionarySet.GetHashCode()
DictionarySet.ToString()
DictionarySet.InstantiateDictionary()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Tangosol.Util.Collections
Assembly: Coherence.Core.dll
Syntax
public class HashSet : DictionarySet, ICollection, IEnumerable, ISerializable

Constructors

| Improve this Doc View Source

HashSet()

Create a new HashSet.

Declaration
public HashSet()
| Improve this Doc View Source

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 HashSet instance.

StreamingContext context

A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with this dictionary.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

System.Collections.ICollection
System.Collections.IEnumerable
ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000, 2020, Oracle and/or its affiliates. All rights reserved.