Class SortedHashSet
IDictionary-based ICollection implementation that contains no duplicate elements and maintains sorted values.
Inherited Members
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
|
StreamingContext | context | A StreamingContext object containing the source and destination of the serialized stream associated with this dictionary. |