Class EquatableSet<T>
Represents a strongly typed set of objects.
Provides methods to manipulate the set. Also provides functionality
to compare sets against each other through an implementations of
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class EquatableSet<T> : ISet<T>, IEquatable<ISet<T>>
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |
Constructors
Name | Description |
---|---|
EquatableSet() | Initializes a new instance of the EquatableSet<T> class that is empty and has the default initial capacity. |
EquatableSet(ICollection<T>) | Initializes a new instance of the EquatableSet<T> class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied. |
EquatableSet(IEnumerable<T>, IEqualityComparer<T>) | Initializes a new instance of the EquatableSet<T> class that uses the specified equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied. |
EquatableSet(IEqualityComparer<T>) | Initializes a new instance of the EquatableSet<T> class that is empty and uses the specified equality comparer for the set type. |
EquatableSet(ISet<T>, Boolean) | Initializes a new instance of EquatableSet<T>.
If the
The internal |
Properties
Name | Description |
---|---|
Count | Gets the number of elements contained in the EquatableSet<T>. |
IsReadOnly | Gets a value indicating whether the EquatableSet<T> is read-only. |
Methods
Name | Description |
---|---|
Add(T) | Adds an element to the current set and returns a value to indicate if the element was successfully added. |
Clear() | Removes all items from the EquatableSet<T>. |
Clone() | Clones the EquatableSet<T>. |
Contains(T) | Determines whether the EquatableSet<T> contains a specific value. |
CopyTo(T[], Int32) | Copies the elements of the EquatableSet<T> to an |
Equals(ISet<T>) | Compares this sequence to
The comparison takes into consideration any values in this collection and values
of any nested collections, but does not take into consideration the data type.
Therefore, EquatableSet<T> can equal any |
Equals(Object) | If the object passed implements
The comparison takes into consideration any values in this collection and values
of any nested collections, but does not take into consideration the data type.
Therefore, EquatableSet<T> can equal any |
ExceptWith(IEnumerable<T>) | Removes all elements in the specified collection from the current set. |
GetEnumerator() | Returns an enumerator that iterates through the collection. |
GetHashCode() | Returns the hash code value for this list.
The hash code determination takes into consideration any values in
this collection and values of any nested collections, but does not
take into consideration the data type. Therefore, the hash codes will
be exactly the same for this EquatableSet<T> and another
|
IntersectWith(IEnumerable<T>) | Modifies the current set so that it contains only elements that are also in a specified collection. |
IsProperSubsetOf(IEnumerable<T>) | Determines whether the current set is a proper (strict) subset of a specified collection. |
IsProperSupersetOf(IEnumerable<T>) | Determines whether the current set is a proper (strict) superset of a specified collection. |
IsSubsetOf(IEnumerable<T>) | Determines whether a set is a subset of a specified collection. |
IsSupersetOf(IEnumerable<T>) | Determines whether the current set is a superset of a specified collection. |
Overlaps(IEnumerable<T>) | Determines whether the current set overlaps with the specified collection. |
Remove(T) | Removes the first occurrence of a specific object from the EquatableSet<T>. |
SetEquals(IEnumerable<T>) | Determines whether the current set and the specified collection contain the same elements. |
SymmetricExceptWith(IEnumerable<T>) | Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both. |
ToString() | Returns a string representation of this collection (and any nested collections). The string representation consists of a list of the collection's elements in the order they are returned by its enumerator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). |
UnionWith(IEnumerable<T>) | Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both. |