Show / Hide Table of Contents

Class SortedHashSet

IDictionary-based ICollection implementation that contains no duplicate elements and maintains sorted values.

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

Constructors

SortedHashSet()

Create a new SortedHashSet.

Declaration
public SortedHashSet()

SortedHashSet(ICollection)

Create and populate a new SortedHashSet with the given collection of elements.

Declaration
public SortedHashSet(ICollection items)
Parameters
Type Name Description
ICollection items

The collection of elements to populate the set with.

SortedHashSet(IComparer)

Create a new SortedHashSet with the specified IComparer

Declaration
public SortedHashSet(IComparer comparer)
Parameters
Type Name Description
IComparer comparer

Specify an IComparer to determine element order opposed to using the natural ordering of the objects.

SortedHashSet(int)

Create a new SortedHashSet with the specified initial capacity.

Declaration
public SortedHashSet(int capacity)
Parameters
Type Name Description
int capacity

The initial capacity of the backing dictionary.

SortedHashSet(SerializationInfo, StreamingContext)

Initializes a new instance of the SortedHashSet class using the specified SerializationInfo and StreamingContext.

Declaration
protected SortedHashSet(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

A SerializationInfo object containing the information required to initialize this SortedHashSet instance.

StreamingContext context

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

Implements

ICollection
IEnumerable
ISerializable
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.